ASoC: amd: acp-da7219-max98357a: Constify regulator_ops
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 14 Apr 2024 16:47:03 +0000 (18:47 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 15 Apr 2024 01:17:20 +0000 (10:17 +0900)
Neither core nor the driver modifes 'struct regulator_ops', so it can be
const for code safety.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20240414164703.239851-1-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-da7219-max98357a.c

index 84f3d65ba52e3ee4982c7eb03e22a0c7124fe72e..77cf72082e73d755a8187e874b305e848a4a5e6b 100644 (file)
@@ -733,7 +733,7 @@ static struct regulator_config acp_da7219_cfg = {
        .init_data = &acp_da7219_data,
 };
 
-static struct regulator_ops acp_da7219_ops = {
+static const struct regulator_ops acp_da7219_ops = {
 };
 
 static const struct regulator_desc acp_da7219_desc = {