ASoC: AMD: constify regulator_desc structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 28 Oct 2018 05:56:08 +0000 (06:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:25:57 +0000 (11:25 +0000)
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>
sound/soc/amd/acp-da7219-max98357a.c

index 3f813ea5210a9dabf39404c6bd84d97390ea9ab2..a5daad973ce565b8c09fb0db9d97c0a285d9600a 100644 (file)
@@ -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,