OSDN Git Service

regulator: rpi-panel: Remove get_brightness hook
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 24 Jan 2022 22:01:27 +0000 (17:01 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 20:55:51 +0000 (20:55 +0000)
commit1d746d448f421094a71ba634399d2ee61669513f
treea3cae6004d335eee9d4cbf72e42186161d242436
parent8c518eb4039102445b1b7bd6626aba0fef65b753
regulator: rpi-panel: Remove get_brightness hook

The driver was implementing a get_brightness function that
tried to read back the PWM setting of the display to report
as the current brightness.
The controller on the display does not support that, therefore
we end up reporting a brightness of 0, and that confuses
systemd's backlight service.

Remove the hook so that the framework returns the current
brightness automatically.

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-8-detlev.casanova@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rpi-panel-attiny-regulator.c