mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[ALSA] remove redundent assignment to the ac97 device structure
AC97 Codec Don't use dev.platform_data to store a reference to the containing ac97_t structure. Such assignment is redundent since we can deduce the ac97_t structure location from the contained device structure. This sets platform_data free for other purposes. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3a91e95969
commit
72e75de2df
2 changed files with 2 additions and 1 deletions
|
|
@ -527,6 +527,8 @@ struct _snd_ac97 {
|
|||
struct device dev;
|
||||
};
|
||||
|
||||
#define to_ac97_t(d) container_of(d, struct _snd_ac97, dev)
|
||||
|
||||
/* conditions */
|
||||
static inline int ac97_is_audio(ac97_t * ac97)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue