regulator: rpi-panel: Remove get_brightness hook
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 21 Sep 2021 14:32:50 +0000 (15:32 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 27 Sep 2021 09:16:39 +0000 (10:16 +0100)
commitce646f7446fba781ee55ea64997b9ad3f6bd8564
treec4c9032b3ab5f927a845ac4c7b00c451facdb43a
parentb7c3c9ab20820b89c0650a20c278c0a328c365ff
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