]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: tb10x: Create local helper variables
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Aug 2018 14:30:12 +0000 (16:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 06:53:26 +0000 (08:53 +0200)
commitd28af35b0c91eea1030c5fef1f8c0f21b97a7e03
treed11d44e7628b99ce2785b3f6a0c2c43e31244003
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
gpio: tb10x: Create local helper variables

Create a local struct device *dev helper variable to make the code
easier to read.

Most GPIO drivers use "np" (node pointer) rather than "dn" (device node)
to point to the device tree node. Let's follow this convention.

Cc: linux-snps-arc@lists.infradead.org
Acked-by: Christian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tb10x.c