Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
dd8c3473 9d85ec4e

+1 -1
+1 -1
sound/soc/amd/acp-da7219-max98357a.c
··· 733 733 .init_data = &acp_da7219_data, 734 734 }; 735 735 736 - static struct regulator_ops acp_da7219_ops = { 736 + static const struct regulator_ops acp_da7219_ops = { 737 737 }; 738 738 739 739 static const struct regulator_desc acp_da7219_desc = {