i2c: i801: Use GPIO_LOOKUP() helper macro
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 24 Mar 2020 13:56:47 +0000 (14:56 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 15 Apr 2020 10:57:01 +0000 (12:57 +0200)
commitbe1b92c133cc91b2fb00b8c5f6b8a922fa8003da
tree94148d6b8769af782ba4114e7996d7afa1b7faf5
parentdef00b32f02729eb55088f83b0f6e076cdbb3bc3
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>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c