iio: chemical: atlas-ph-sensor: switch regmap cache
authorMatt Ranostay <mranostay@gmail.com>
Sun, 14 Feb 2016 01:20:42 +0000 (17:20 -0800)
committerJonathan Cameron <jic23@kernel.org>
Fri, 19 Feb 2016 18:57:13 +0000 (18:57 +0000)
commit0d43b3468871f5d5194edfe7052b6a49691eb6fd
tree4276b06fa10a6b7dddf40a2506fdd5bb7445d5d4
parent3347a0656e7a83b959b1d0ad5396fb4f9c9b2a0e
iio: chemical: atlas-ph-sensor: switch regmap cache

switch from using REGCACHE_FLAT to REGCACHE_RBTREE so initial hw values
are read from device. This also allows some volatile ranges to be
dropped.

Note that REGCACHE_FLAT is intended only for very low lag cases so doesn't
do nice things like read initial values from the device.  Hence this change.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/chemical/atlas-ph-sensor.c
This page took 0.024796 seconds and 5 git commands to generate.