Skip to content

Commit 89339a2

Browse files
6by9broonie
authored andcommitted
regulator: rpi-panel: Ensure the backlight is off during probe.
The initial state of the Atmel is not defined, so ensure the backlight PWM is set to 0 by default. 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-5-detlev.casanova@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 00440bc commit 89339a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/regulator/rpi-panel-attiny-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ static int attiny_i2c_probe(struct i2c_client *i2c,
250250

251251
regmap_write(regmap, REG_POWERON, 0);
252252
msleep(30);
253+
regmap_write(regmap, REG_PWM, 0);
253254

254255
config.dev = &i2c->dev;
255256
config.regmap = regmap;

0 commit comments

Comments
 (0)