On Tue, Dec 19, 2023 at 04:22:43PM +0100, Greg Kroah-Hartman wrote: > 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. > > Cc: Wolfram Sang <wsa@xxxxxxxxxx> > Cc: Liam Girdwood <lgirdwood@xxxxxxxxx> > Cc: Mark Brown <broonie@xxxxxxxxxx> > Cc: Jaroslav Kysela <perex@xxxxxxxx> > Cc: Takashi Iwai <tiwai@xxxxxxxx> > Cc: Heiko Stuebner <heiko@xxxxxxxxx> > Cc: linux-i2c@xxxxxxxxxxxxxxx > Cc: linux-sound@xxxxxxxxxxxxxxx > Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx > Cc: linux-rockchip@xxxxxxxxxxxxxxxxxxx > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Applied to for-next, thanks!
Attachment:
signature.asc
Description: PGP signature
- References:
- [PATCH] i2c: make i2c_bus_type const
- From: Greg Kroah-Hartman
- [PATCH] i2c: make i2c_bus_type const
- Prev by Date: [PATCH] ALSA: hda: cs35l41: Add HP override
- Next by Date: [PATCH 00/27] sparc32: sunset sun4m and sun4d
- Previous by thread: Re: [PATCH] i2c: make i2c_bus_type const
- Next by thread: [PATCH v1 0/2] Minor fixes for CS35L41 HDA Property driver
- Index(es):