diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-28 08:56:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-05 14:25:57 +0300 |
commit | de3636488cff3678bafaf2d024e64c003ed2beae (patch) | |
tree | 648ae2850ecf459bcf0c327f00aff4b51c0548e1 /sound/soc/amd/acp-da7219-max98357a.c | |
parent | 704a9fc20b87f2929732cab0a1a04f28d4093085 (diff) | |
download | linux-de3636488cff3678bafaf2d024e64c003ed2beae.tar.xz |
ASoC: AMD: constify regulator_desc structure
The regulator_desc structure can be const as it is only passed as the
second argument of devm_regulator_register and the corresponding
parameter is declared as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp-da7219-max98357a.c')
-rw-r--r-- | sound/soc/amd/acp-da7219-max98357a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 3f813ea5210a..a5daad973ce5 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -403,7 +403,7 @@ static struct regulator_config acp_da7219_cfg = { static struct regulator_ops acp_da7219_ops = { }; -static struct regulator_desc acp_da7219_desc = { +static const struct regulator_desc acp_da7219_desc = { .name = "reg-fixed-1.8V", .type = REGULATOR_VOLTAGE, .owner = THIS_MODULE, |