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)
commit714d3a295854c14295fc633be1abbb947d2059a1
treee230599e03a4ef7209954beaf404356acfe7feab
parent5e2ca893d772560a0926a31b88f8c83efbc6b058
gpio: rcar: Cache gpiochip_get_data() return value

Since commit 43c54ecade400cf6 ("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