pinctrl: th1520: Factor out casts
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>
Fri, 11 Oct 2024 14:48:25 +0000 (16:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Oct 2024 19:27:41 +0000 (21:27 +0200)
commit1fc30cd9277063bb797eeafe73a1f3faa6177492
tree8a3281cec09d6ffae7981acd28e7f17c5aa5c679
parentd1e16e219901965e6c0715adb92750ed865fda43
pinctrl: th1520: Factor out casts

Limit the casts to get the mux data and flags from the driver data
pointer with each pin to two inline functions as requested by Andy
during review.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Reviewed-by: Drew Fustini <dfustini@tenstorrent.com>
Tested-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241011144826.381104-4-emil.renner.berthing@canonical.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-th1520.c