backlight: lp855x: Add dev helper variable to lp855x_probe()
authorHans de Goede <hdegoede@redhat.com>
Tue, 2 Nov 2021 22:55:03 +0000 (23:55 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 22 Dec 2021 11:13:25 +0000 (11:13 +0000)
commit92add941b6be185e511a7564bf68963fa1633d53
treeda249c39627bf7e86443188acad911bd15c9f1ce
parentdec5779e6a7b73c6c64c4f75e7fcbf04d3b0aa7c
backlight: lp855x: Add dev helper variable to lp855x_probe()

Add a dev local variable to the lp855x_probe(), to replace "&cl->dev"
and "lp->dev" in various places.

Also switch to dev_err_probe() in one case which takes care of not
printing -EPROBE_DEFER errors for us.

This is mostly a preparation for adding ACPI enumeration support which
will use the new "dev" variable more.

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-2-hdegoede@redhat.com
drivers/video/backlight/lp855x_bl.c