Skip to content

Commit dd8c347

Browse files
krzkbroonie
authored andcommitted
ASoC: amd: acp-da7219-max98357a: Constify regulator_ops
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>
1 parent 9d85ec4 commit dd8c347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/amd/acp-da7219-max98357a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ static struct regulator_config acp_da7219_cfg = {
733733
.init_data = &acp_da7219_data,
734734
};
735735

736-
static struct regulator_ops acp_da7219_ops = {
736+
static const struct regulator_ops acp_da7219_ops = {
737737
};
738738

739739
static const struct regulator_desc acp_da7219_desc = {

0 commit comments

Comments
 (0)