]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: vx222: Use container_of()
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2017 08:02:08 +0000 (10:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 May 2017 09:21:05 +0000 (11:21 +0200)
commit5f976f58917eafbd8f725b9b7c0efcf6937e0e83
tree90b92404da674fb2a6365a0a71e34914781f0b25
parent6c1df232731f83621fd6d590aa1a2325ceefaed9
ALSA: vx222: Use container_of()

The vx222 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/pci/vx222/vx222.c
sound/pci/vx222/vx222.h
sound/pci/vx222/vx222_ops.c