diff options
| author | Bhumika Goyal <[email protected]> | 2017-08-04 21:04:41 +0530 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2017-08-06 22:16:37 +0200 |
| commit | 4647e8d512224265afad63aa27a6b22561f50d46 (patch) | |
| tree | 545674c416e4becc6ac04988cfd11ec98d05b107 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 6d4d41f011454240e6890068c41e7530fba9f387 (diff) | |
ALSA: ice1712: add const to snd_ak4xxx_private structures
Declare snd_ak4xxx_private structures as const as they are only passed
to the function snd_ice1712_akm4xxx_init. This argument is of type const,
so make the structures const.
Done using Coccinelle:
@match disable optional_qualifier@
identifier s;
position p;
@@
static struct snd_ak4xxx_private s@p={...};
@good1@
identifier match.s;
position p;
@@
snd_ice1712_akm4xxx_init(...,&s@p,...)
@bad@
identifier match.s;
position p!={match.p,good1.p};
@@
s@p
@depends on !bad disable optional_qualifier@
identifier match.s;
@@
static
+const
struct snd_ak4xxx_private s={...};
Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions