i2c: mux: gpio: don't fiddle with GPIOLIB internals
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 11 Oct 2023 13:02:04 +0000 (15:02 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 13 Oct 2023 06:50:08 +0000 (08:50 +0200)
commit9acdf6209f226846cc1e354a6b3da3c927898926
tree6284c35198e6ffcffaff3c68815942f186550f84
parent370232d096e3fe188e4596f77bc6560636bd40c1
i2c: mux: gpio: don't fiddle with GPIOLIB internals

Use the relevant API functions to retrieve the address of the
underlying struct device instead of accessing GPIOLIB private structures
manually.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Peter Rosin <peda@axentia.se>
Acked-by: Wolfram Sang <wsa@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/i2c/muxes/i2c-mux-gpio.c