backlight: gpio: Pull gpio_backlight_initial_power_state() into probe
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 22 Oct 2019 08:36:30 +0000 (10:36 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 11:34:01 +0000 (11:34 +0000)
commit9afa302473f3ed925acd2499b624fdc0c527e0d0
treecd795a5bdac02b78ca762444abad5cff20b49160
parentd17465a0af3f669f56289649be0fe6ab0fb63e39
backlight: gpio: Pull gpio_backlight_initial_power_state() into probe

The probe function in the gpio-backlight driver is quite short. If we
pull gpio_backlight_initial_power_state() into probe we can drop two
more fields from struct gpio_backlight and shrink the driver code.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/gpio_backlight.c