backlight: lp855x: Move device_config setting out of lp855x_configure()
authorHans de Goede <hdegoede@redhat.com>
Tue, 2 Nov 2021 22:55:02 +0000 (23:55 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 22 Dec 2021 11:12:29 +0000 (11:12 +0000)
commitdec5779e6a7b73c6c64c4f75e7fcbf04d3b0aa7c
tree55be5f19140c54b970b086655ba1a5396abeba78
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
backlight: lp855x: Move device_config setting out of lp855x_configure()

Move the setting of the lp->cfg pointer to the chip specific
lp855x_device_config struct from lp855x_configure() to
lp855x_probe(), before calling lp855x_parse_dt().

This is a preperation patch for adding ACPI enumeration support.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211102225504.18920-1-hdegoede@redhat.com
drivers/video/backlight/lp855x_bl.c