]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: rcar: Cache gpiochip_get_data() return value
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 28 Oct 2020 14:15:01 +0000 (15:15 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 30 Oct 2020 14:57:12 +0000 (15:57 +0100)
commit1e9798dca544c67af70189eb5d5b83182304be8d
treee230599e03a4ef7209954beaf404356acfe7feab
parent3679ec1720f81f2db3535db4f2989bb5ece65a51
gpio: rcar: Cache gpiochip_get_data() return value

Since commit 2460bc8356916f8a ("gpio: move the subdriver data pointer
into gpio_device") changed gpiochip_get_data() to an out-of-line
function, it is now worthwhile to avoid multiple calls in a row by
caching its return value in a local variable.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-rcar.c