]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: gpio: Use a helper variable for &pdev->dev
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 22 Oct 2019 08:36:29 +0000 (10:36 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 11:34:01 +0000 (11:34 +0000)
commita23b3473297d9397f5fc0f437a33c87d38db078b
tree57e31b9470aeb8ce7e4f96562a55aea23fe0be28
parent6aa6921b74810d2121926bbecc06c361af8bfbca
backlight: gpio: Use a helper variable for &pdev->dev

Instead of dereferencing pdev each time, use a helper variable for
the associated device pointer.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/gpio_backlight.c