]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5645: make rt5645_platform_data const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 23 Aug 2017 14:35:22 +0000 (20:05 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2017 15:50:00 +0000 (16:50 +0100)
commitd57bb201fbe771fbb5fe18104edefa4feca3ec5e
tree363b2348ac37b787c10f4b336f6e0642c35a8f0c
parentc740355d0c90c1a53a37473b7cd35a912e971ec8
ASoC: rt5645: make rt5645_platform_data const

Make these const as they are only used during a copy operation.
Done using Coccinelle.

@match disable optional_qualifier@
identifier s;
@@
static struct rt5645_platform_data s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
position ref.p;
identifier match.s,f,c;
expression e;
@@
(
e = s@p
|
e = s@p.f
|
c(...,s@p.f,...)
|
c(...,s@p,...)
)

@bad depends on  !good1@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct rt5645_platform_data s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c