i2c: i801: Improve i801_add_mux
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 6 Aug 2021 21:17:10 +0000 (23:17 +0200)
committerWolfram Sang <wsa@kernel.org>
Wed, 29 Sep 2021 19:37:40 +0000 (21:37 +0200)
commit4c5910631cc1a9c3b8d34ebb0048727eded9148c
treee640869d093ad33a689805347afdb3612e5e923e
parent4811a411a92913e5327e4b32d4bb783823348537
i2c: i801: Improve i801_add_mux

The return value of i801_add_mux() isn't used, so let's change it to void.
In addition remove the not needed cast to struct gpiod_lookup.
GPIO_LOOKUP() uses GPIO_LOOKUP_IDX() that includes this cast.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c