]> git.baikalelectronics.ru Git - 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)
commit48142d74f4634b093b5869f7b5bc55d0bc49b232
tree90b92404da674fb2a6365a0a71e34914781f0b25
parent4b66590af2b241f61b9f22f9932840eec969afec
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