]> git.baikalelectronics.ru Git - kernel.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)
commitcec13b087551a61dd5faa8053735cc46b92447cc
treed11d44e7628b99ce2785b3f6a0c2c43e31244003
parentf030a7bb7b1f7de16c1c716a587185e209e25800
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