pinctrl: adi2: Improve a size determination in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 20 Dec 2017 11:38:53 +0000 (12:38 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Dec 2017 09:22:41 +0000 (10:22 +0100)
commitce8b8d70d4d8d6351be44a467a2b61096dfc7a47
treefc6bf743a9e7aa667773c51309182b00b999f93d
parent419517f15df3a5ebaf5d05acfbc74be3f8377641
pinctrl: adi2: Improve a size determination in two functions

Replace the specification of data structures by variable references
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-adi2.c