regmap: Allow installing custom reg_update_bits function
authorJon Ringle <jringle@gridpoint.com>
Thu, 1 Oct 2015 16:38:07 +0000 (12:38 -0400)
committerMark Brown <broonie@kernel.org>
Tue, 6 Oct 2015 15:12:34 +0000 (16:12 +0100)
commit77792b11409c9270d98e604b4314b85ce886ac7d
tree13f3a518de69bbbccbd410b26ff24f0379c28dfd
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
regmap: Allow installing custom reg_update_bits function

This commit allows installing a custom reg_update_bits function for cases where
the hardware provides a mechanism to set or clear register bits without a
read/modify/write cycle. Such is the case with the Microchip ENCX24J600.

If a custom reg_update_bits function is provided, it will only be used against
volatile registers.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h