summaryrefslogtreecommitdiffstats
path: root/sound/soc/rockchip/rk3399_gru_sound.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-19 16:22:43 +0100
committerWolfram Sang <wsa@kernel.org>2024-01-18 21:10:43 +0100
commit94959c0e796e41128483588d133b9a7003b409f9 (patch)
treeae1f507d3f5736c9a688125e7d8a6c792f1178fa /sound/soc/rockchip/rk3399_gru_sound.c
parentdt-bindings: at24: add ROHM BR24G04 (diff)
downloadlinux-94959c0e796e41128483588d133b9a7003b409f9.tar.xz
linux-94959c0e796e41128483588d133b9a7003b409f9.zip
i2c: make i2c_bus_type const
Now that the driver core can properly handle constant struct bus_type, move the i2c_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Note, the sound/soc/rockchip/rk3399_gru_sound.c also needed tweaking as it decided to save off a pointer to a bus type for internal stuff, and it was using the i2c_bus_type as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/rockchip/rk3399_gru_sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c
index 1a504ebd3a0e..6c89c7331229 100644
--- a/sound/soc/rockchip/rk3399_gru_sound.c
+++ b/sound/soc/rockchip/rk3399_gru_sound.c
@@ -446,7 +446,7 @@ static const struct rockchip_sound_route rockchip_routes[] = {
struct dailink_match_data {
const char *compatible;
- struct bus_type *bus_type;
+ const struct bus_type *bus_type;
};
static const struct dailink_match_data dailink_match[] = {