Skip to content

Commit

Permalink
sound: aedsp16: Change structure initialisation to C99 style
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
musicakc authored and tiwai committed Jun 15, 2016
1 parent 43aa56d commit 6a99ad7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sound/oss/aedsp16.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ static struct orVals orDMA[] __initdata = {
};

static struct aedsp16_info ae_config = {
DEF_AEDSP16_IOB,
DEF_AEDSP16_IRQ,
DEF_AEDSP16_MRQ,
DEF_AEDSP16_DMA,
-1,
-1,
INIT_NONE
.base_io = DEF_AEDSP16_IOB,
.irq = DEF_AEDSP16_IRQ,
.mpu_irq = DEF_AEDSP16_MRQ,
.dma = DEF_AEDSP16_DMA,
.mss_base = -1,
.mpu_base = -1,
.init = INIT_NONE
};

/*
Expand Down

0 comments on commit 6a99ad7

Please sign in to comment.