[PATCH 1/8] treewide: replace dev_get_drvdata with device_get_match_data

Sascha Hauer s.hauer at pengutronix.de
Tue May 6 00:41:12 PDT 2025


On Tue, 06 May 2025 08:34:39 +0200, Ahmad Fatoum wrote:
> Both Linux and barebox define a dev_get_drvdata function, but
> annoyingly, the barebox version accesses the private data set in the
> probe function, while the Linux version retrieves the match data set by
> the driver core instead.
> 
> In preparation for changing the function to have the Linux semantics,
> start by replacing most instances in barebox with device_get_match_data.
> 
> [...]

Applied, thanks!

[1/8] treewide: replace dev_get_drvdata with device_get_match_data
      https://git.pengutronix.de/cgit/barebox/commit/?id=20d87123a638 (link may not be stable)
[2/8] ARM: i.MX: esdctl: replace dev_get_drvdata with device_get_match_data
      https://git.pengutronix.de/cgit/barebox/commit/?id=443b268313cd (link may not be stable)
[3/8] driver: switch dev_get_drvdata to Linux semantics
      https://git.pengutronix.de/cgit/barebox/commit/?id=d2ffe93877b9 (link may not be stable)
[4/8] gpio: gpio-mxs: replace dev_get_drvdata with device_get_match_data
      https://git.pengutronix.de/cgit/barebox/commit/?id=0bac10a83bb9 (link may not be stable)
[5/8] mci: am654-sdhci: fix error code printed in error messages
      https://git.pengutronix.de/cgit/barebox/commit/?id=aeefd448d91c (link may not be stable)
[6/8] pinctrl: at91: replace dev_get_drvdata with device_get_match_data
      https://git.pengutronix.de/cgit/barebox/commit/?id=3142ec714275 (link may not be stable)
[7/8] drivers: maintain const when converting from struct driver
      https://git.pengutronix.de/cgit/barebox/commit/?id=61c1bc52072d (link may not be stable)
[8/8] driver: base: invert driver match callback for Linux compatibility
      https://git.pengutronix.de/cgit/barebox/commit/?id=64ca71016300 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list