i2c: i801: Use GPIO_LOOKUP() helper macro
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 11 May 2020 14:52:52 +0000 (16:52 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 May 2020 08:12:41 +0000 (10:12 +0200)
commit22b3bc63da37dc3c24f877951ff7bf60737848cf
tree322f9ca9b32e4b85d49039b67a0395ae0a167841
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
i2c: i801: Use GPIO_LOOKUP() helper macro

i801_add_mux() fills in the GPIO lookup table by manually populating an
array of gpiod_lookup structures.  Use the existing GPIO_LOOKUP() helper
macro instead, to relax a dependency on the gpiod_lookup structure's
member names.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Link: https://lore.kernel.org/r/20200511145257.22970-2-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/i2c/busses/i2c-i801.c