Skip to content

Commit 7291e7d

Browse files
6by9broonie
authored andcommitted
regulator: rpi-panel: Register with a unique backlight name
There's no reason why 2 Raspberry Pi DSI displays can't be attached to a Pi Compute Module, so the backlight names need to be unique. Use the parent dev_name. It's not as readable, but is unique. 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-2-detlev.casanova@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bef8c5f commit 7291e7d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ static int attiny_i2c_probe(struct i2c_client *i2c,
181181

182182
props.type = BACKLIGHT_RAW;
183183
props.max_brightness = 0xff;
184-
bl = devm_backlight_device_register(&i2c->dev,
185-
"7inch-touchscreen-panel-bl",
184+
bl = devm_backlight_device_register(&i2c->dev, dev_name(&i2c->dev),
186185
&i2c->dev, regmap, &attiny_bl,
187186
&props);
188187
if (IS_ERR(bl))

0 commit comments

Comments
 (0)