[PATCH 4/6] mmc: sdhci_pltfm: pass more data on custom init-call
From: Lothar Waßmann <hidden>
Date: 2010-09-30 08:31:58
Also in:
linux-mmc
From: Lothar Waßmann <hidden>
Date: 2010-09-30 08:31:58
Also in:
linux-mmc
Hi, Wolfram Sang writes:
The custom init call may need more data to perform its job, so we pass it a pointer to pdata, too. Also, always use the platform_id specific data even if platform_data is present. Doing that, platform_data can additionally be parsed by init() for board-specific information (via sdhci->mmc->parent).
Why not a pointer to the platform_device itself? Then the callback function would have even more information (e.g. platform_device ID) and could easily get at the platform_data too. Lothar Wa?mann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Gesch?ftsf?hrer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info at karo-electronics.de ___________________________________________________________