regulator/rpi-panel-attiny: Don't read the LCD power status
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 29 Nov 2021 18:31:37 +0000 (18:31 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:32 +0000 (16:04 +0000)
commita1cdb2128e2d2c96e9d301f15bc06c1d1b837de7
tree075b90ee58f3b53b59a37df14ce59aaf72712247
parente662ec03e54ee0fbf6960926de82c979b2054406
regulator/rpi-panel-attiny: Don't read the LCD power status

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 cached
status last set.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/regulator/rpi-panel-attiny-regulator.c