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)
commit239480ab92a52544748749c8445f4e12495e4f69
treef218eef1a263ef505a7005166ab1dcd412fc230b
parent2e0de6ea956ff429cf11bd1a92d7444bc6000698
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