]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabfc1b21a1191a68542c622c29f026585ce57b59
tree13f3a518de69bbbccbd410b26ff24f0379c28dfd
parent48fdd7874f07dfb3a661edca7ea1d4807bb4ccb0
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