aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-06-17 10:45:54 -0400
committerTakashi Iwai <tiwai@suse.de>2016-06-17 10:58:45 -0400
commitd169133889090903d9feb968deb9fa01240a58f5 (patch)
treed801b6ac959c630e4108a781a1a41134677a2a51
parente5c53278718f7f764a9d3436dc16545cb3844049 (diff)
ALSA: ctxfi: Change structure initialisation to C99 style
For readability and to allow for structure randomisation, replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p, bad.fix; @@ struct i1 i2@p = { ..., + .fld = e - e@fix ,...}; Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/ctxfi/cthw20k2.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c
index 9dc2950e1ab7..6414ecf93efa 100644
--- a/sound/pci/ctxfi/cthw20k2.c
+++ b/sound/pci/ctxfi/cthw20k2.c
@@ -1615,23 +1615,23 @@ static int hw_dac_init(struct hw *hw, const struct dac_conf *info)
1615 int i; 1615 int i;
1616 struct regs_cs4382 cs_read = {0}; 1616 struct regs_cs4382 cs_read = {0};
1617 struct regs_cs4382 cs_def = { 1617 struct regs_cs4382 cs_def = {
1618 0x00000001, /* Mode Control 1 */ 1618 .mode_control_1 = 0x00000001, /* Mode Control 1 */
1619 0x00000000, /* Mode Control 2 */ 1619 .mode_control_2 = 0x00000000, /* Mode Control 2 */
1620 0x00000084, /* Mode Control 3 */ 1620 .mode_control_3 = 0x00000084, /* Mode Control 3 */
1621 0x00000000, /* Filter Control */ 1621 .filter_control = 0x00000000, /* Filter Control */
1622 0x00000000, /* Invert Control */ 1622 .invert_control = 0x00000000, /* Invert Control */
1623 0x00000024, /* Mixing Control Pair 1 */ 1623 .mix_control_P1 = 0x00000024, /* Mixing Control Pair 1 */
1624 0x00000000, /* Vol Control A1 */ 1624 .vol_control_A1 = 0x00000000, /* Vol Control A1 */
1625 0x00000000, /* Vol Control B1 */ 1625 .vol_control_B1 = 0x00000000, /* Vol Control B1 */
1626 0x00000024, /* Mixing Control Pair 2 */ 1626 .mix_control_P2 = 0x00000024, /* Mixing Control Pair 2 */
1627 0x00000000, /* Vol Control A2 */ 1627 .vol_control_A2 = 0x00000000, /* Vol Control A2 */
1628 0x00000000, /* Vol Control B2 */ 1628 .vol_control_B2 = 0x00000000, /* Vol Control B2 */
1629 0x00000024, /* Mixing Control Pair 3 */ 1629 .mix_control_P3 = 0x00000024, /* Mixing Control Pair 3 */
1630 0x00000000, /* Vol Control A3 */ 1630 .vol_control_A3 = 0x00000000, /* Vol Control A3 */
1631 0x00000000, /* Vol Control B3 */ 1631 .vol_control_B3 = 0x00000000, /* Vol Control B3 */
1632 0x00000024, /* Mixing Control Pair 4 */ 1632 .mix_control_P4 = 0x00000024, /* Mixing Control Pair 4 */
1633 0x00000000, /* Vol Control A4 */ 1633 .vol_control_A4 = 0x00000000, /* Vol Control A4 */
1634 0x00000000 /* Vol Control B4 */ 1634 .vol_control_B4 = 0x00000000 /* Vol Control B4 */
1635 }; 1635 };
1636 1636
1637 if (hw->model == CTSB1270) { 1637 if (hw->model == CTSB1270) {