ASoC: mxs-saif: remove function in platform_data

Add master_mode and master_id in platfrom_data since it's board
specific and board knows it.
Then we can remove the function pointer in platfrom_data to make
the driver more devicetree friendly.

Signed-off-by: Dong Aisheng <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
This commit is contained in:
Dong Aisheng 2011-11-22 23:52:21 +08:00 • committed by Shawn Guo
commit 778825801d
2 changed files with 11 additions and 13 deletions

View file

@ -10,7 +10,7 @@
#define __SOUND_SAIF_H__
struct mxs_saif_platform_data {
int (*init) (void);
int (*get_master_id) (unsigned int saif_id);
bool master_mode; /* if true use master mode */
int master_id; /* id of the master if in slave mode */
};
#endif