diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-11-02 23:55:03 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-12-22 11:13:25 +0000 |
commit | 92add941b6be185e511a7564bf68963fa1633d53 (patch) | |
tree | da249c39627bf7e86443188acad911bd15c9f1ce /net/switchdev/switchdev.c | |
parent | dec5779e6a7b73c6c64c4f75e7fcbf04d3b0aa7c (diff) | |
download | linux-92add941b6be185e511a7564bf68963fa1633d53.tar.gz linux-92add941b6be185e511a7564bf68963fa1633d53.tar.bz2 linux-92add941b6be185e511a7564bf68963fa1633d53.zip |
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
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions