]> 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)
commit24ab1ec48999edfbc83a48962e965d4271dffaa3
treef218eef1a263ef505a7005166ab1dcd412fc230b
parentb3f946c16059d09425d9a6f3b9c25d159aa540c7
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