]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: codecs: constify static sdw_slave_ops struct
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 24 Jan 2023 16:39:51 +0000 (17:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:55 +0000 (11:53 +0200)
commit400950f66a8a457696cf9d7a9531377b9c9e7612
tree13da4a047d750db509c5ecef7a0e8ae252476354
parent5279ab199cbdb49c8b8a88af4e7c44968e5e8a00
ASoC: codecs: constify static sdw_slave_ops struct

[ Upstream commit 65b7b869da9bd3bd0b9fa60e6fe557bfbc0a75e8 ]

The struct sdw_slave_ops is not modified and sdw_driver takes pointer to
const, so make it a const for code safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230124163953.345949-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 84822215acd1 ("ASoC: codecs: wcd938x: fix accessing regmap on unattached devices")
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt1316-sdw.c
sound/soc/codecs/rt1318-sdw.c
sound/soc/codecs/rt711-sdca-sdw.c
sound/soc/codecs/rt715-sdca-sdw.c
sound/soc/codecs/wcd938x-sdw.c
sound/soc/codecs/wsa881x.c
sound/soc/codecs/wsa883x.c