wl12xx: add platform data passing support

Add a simple mechanism to pass platform data to the
SDIO instances of wl12xx.

This way there is no confusion over who owns the 'embedded data',
typechecking is preserved, and no possibility for the wrong driver to
pick up the data.

Originally proposed by Russell King.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Ohad Ben-Cohen 2010-09-16 01:31:12 +02:00 • committed by John W. Linville
commit 61ee7007a5
4 changed files with 37 additions and 1 deletions

View file

@ -31,4 +31,7 @@ struct wl12xx_platform_data {
bool use_eeprom;
};
int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
const struct wl12xx_platform_data *wl12xx_get_platform_data(void);
#endif