28 Nov
2011
28 Nov
'11
11:26 p.m.
-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