diff options
author | Nicolas Pitre <nico@cam.org> | 2005-09-16 18:49:22 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-10-07 14:45:44 +0200 |
commit | 72e75de2df9a7116d0afbcd5810b2a8fd4bf7559 (patch) | |
tree | 5e5039a81f91ca1b34688ea9c0f05bdf729e34f8 /include | |
parent | [ALSA] remove bogus match method for ac97_bus (diff) | |
download | linux-72e75de2df9a7116d0afbcd5810b2a8fd4bf7559.tar.xz linux-72e75de2df9a7116d0afbcd5810b2a8fd4bf7559.zip |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/ac97_codec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h index 2857cf0472df..d11f34832a97 100644 --- a/include/sound/ac97_codec.h +++ b/include/sound/ac97_codec.h @@ -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) { |