OSDN Git Service

regulator/rpi-panel-attiny: Use the regmap cache
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 24 Jan 2022 22:01:28 +0000 (17:01 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 20:55:52 +0000 (20:55 +0000)
commit5fa4e8ea649009566a1b080f836ce23d4ce0c416
tree9cab6d20128103646ba025bb917a6b9282345827
parent1d746d448f421094a71ba634399d2ee61669513f
regulator/rpi-panel-attiny: Use the regmap cache

The I2C to the Atmel is very fussy, and locks up easily on
Pi0-3 particularly on reads.

The LCD power status is controlled solely by this driver, so
rather than reading it back from the Atmel, use the regmap cache
to avoid reading values.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Link: https://lore.kernel.org/r/20220124220129.158891-9-detlev.casanova@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rpi-panel-attiny-regulator.c