gpio: 74x164: Allocate buffer with gen_74x164_chip
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 30 Nov 2015 14:35:25 +0000 (15:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 16:13:17 +0000 (17:13 +0100)
commit410f4574f43c8bd61cd413a15e26e8f03c608085
tree2bb226407b7949edfe118d69e135283ba953f018
parent384ca3c6a28d27030ec971f20b775c596ff87ae5
gpio: 74x164: Allocate buffer with gen_74x164_chip

By moving the internal buffer to the end of struct gen_74x164_chip and
converting it from a pointer to a zero-sized array, it can be allocated
together with gen_74x164_chip, reducing the number of managed
allocations.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-74x164.c