regulator: rpi-panel: Remove get_brightness hook
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 21 Sep 2021 14:32:50 +0000 (15:32 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:25 +0000 (16:04 +0000)
commit566b4c735f6affc2d6887cdaa3adfd9db8f4652a
tree822026e6003fc4b50cc9e18a7584bdcc83e03339
parent90d2ae77d33e04b09f16fdbeb44cd500720e2fef
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>
drivers/regulator/rpi-panel-attiny-regulator.c