[PATCH 4/8] gpio: gpio-mxs: replace dev_get_drvdata with device_get_match_data

Sascha Hauer s.hauer at pengutronix.de
Tue May 6 00:42:53 PDT 2025


On Tue, May 06, 2025 at 08:34:42AM +0200, Ahmad Fatoum wrote:
> In preparation for aligning dev_get_drvdata with Linux, use
> device_get_match_data instead.
> While at it, we drop the unneeded struct mxs_gpio_chip::regs member to
> not have to worry about const safety.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  drivers/gpio/gpio-mxs.c | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)

Moved this one and 5/8 before 3/8 while applying.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list