]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ak411x: Use array instead of offsetof()
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2017 08:47:16 +0000 (10:47 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 May 2017 05:13:03 +0000 (07:13 +0200)
commit7b4117f06221fa948bd6ad49026c0624c6632349
treef218eef1a263ef505a7005166ab1dcd412fc230b
parent30ef71760d10785e19d04663fb0d25e4edb183c4
ALSA: ak411x: Use array instead of offsetof()

The ak4113, ak4114 and ak4117 i2c drivers have some tricky codes to
access the struct fields in the callback.  This can be simplified by
replacing the struct fields with the array.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/ak4113.h
include/sound/ak4114.h
include/sound/ak4117.h
sound/i2c/other/ak4113.c
sound/i2c/other/ak4114.c
sound/i2c/other/ak4117.c