regmap: Allow installing custom reg_update_bits function
authorJon Ringle <jringle@gridpoint.com>
Thu, 1 Oct 2015 11:43:20 +0000 (07:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 11:02:40 +0000 (04:02 -0700)
commit7741c373cf3ea1f5383fa97fb7a640a429d3dd7c
tree83052fc982be30c96213875967fedd35e03a89ca
parent937317c7c1097aa878a5000e3aab616eb5c590c0
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.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h