[alsa-devel] [PATCH] ASoC: Staticise and constify cs42l73_reg_defaults
Brian Austin
brian.austin at cirrus.com
Mon Nov 28 22:26:53 CET 2011
> -struct reg_default cs42l73_reg_defaults[] = {
> +static const struct reg_default cs42l73_reg_defaults[] = {
> { 1, 0x42 }, /* r01 - Device ID A&B */
> { 2, 0xA7 }, /* r02 - Device ID C&D */
> { 3, 0x30 }, /* r03 - Device ID E */
Shouldn't this require struct reg_default *reg_defaults;
be const as well?
sound/soc/codecs/cs42l73.c:1327: warning: initialization discards
qualifiers from pointer target type
Or not use const?
-Brian
More information about the Alsa-devel
mailing list