ALSA: vxpocket: Use container_of()
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2017 08:03:35 +0000 (10:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 May 2017 05:12:57 +0000 (07:12 +0200)
commit2e0de6ea956ff429cf11bd1a92d7444bc6000698
tree7cd743dd2f71643a3d09ca565912d11f684246e9
parent5f976f58917eafbd8f725b9b7c0efcf6937e0e83
ALSA: vxpocket: Use container_of()

The vxpocket driver is using the explicit cast from the parent class
pointer, but it'll be broken when the structure field randomization is
applied.  Use container_of() in a modern manner, instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pcmcia/vx/vxp_mixer.c
sound/pcmcia/vx/vxp_ops.c
sound/pcmcia/vx/vxpocket.c
sound/pcmcia/vx/vxpocket.h