linux-mainline/drivers/mfd
Greg Kroah-Hartman d69d804845 driver core: have match() callback in struct bus_type take a const *
In the match() callback, the struct device_driver * should not be
changed, so change the function callback to be a const *.  This is one
step of many towards making the driver core safe to have struct
device_driver in read-only memory.

Because the match() callback is in all busses, all busses are modified
to handle this properly.  This does entail switching some container_of()
calls to container_of_const() to properly handle the constant *.

For some busses, like PCI and USB and HV, the const * is cast away in
the match callback as those busses do want to modify those structures at
this point in time (they have a local lock in the driver structure.)
That will have to be changed in the future if they wish to have their
struct device * in read-only-memory.

Cc: Rafael J. Wysocki <rafael@kernel.org>
Reviewed-by: Alex Elder <elder@kernel.org>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lore.kernel.org/r/2024070136-wrongdoer-busily-01e8@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-03 15:16:54 +02:00
..
88pm80x.c
88pm800.c
88pm805.c
88pm860x-core.c
88pm860x-i2c.c
aat2870-core.c
ab8500-core.c
ab8500-sysctrl.c mfd: ab8500-sysctrl: Drop ancient charger 2024-01-10 11:25:56 +00:00
abx500-core.c
ac100.c mfd: ac100: Convert to use maple tree register cache 2024-02-23 14:58:03 +00:00
acer-ec-a500.c
act8945a.c
adp5520.c
altera-a10sr.c
altera-sysmgr.c mfd: altera-sysmgr: Call of_node_put() only when of_parse_phandle() takes a ref 2024-02-23 16:02:16 +00:00
arizona-core.c
arizona-i2c.c
arizona-irq.c
arizona-spi.c
arizona.h
as3711.c mfd: as3711: Convert to use maple tree register cache 2024-02-23 14:58:03 +00:00
as3722.c mfd: as3722: Convert to use maple tree register cache 2024-02-23 14:58:03 +00:00
at91-usart.c
atc260x-core.c
atc260x-i2c.c
atmel-flexcom.c
atmel-hlcdc.c
atmel-smc.c
axp20x-i2c.c mfd: axp20x: Add support for AXP717 PMIC 2024-03-28 09:50:59 +00:00
axp20x-rsb.c mfd: axp20x: Add support for AXP717 PMIC 2024-03-28 09:50:59 +00:00
axp20x.c mfd: axp20x: Convert to use Maple Tree register cache 2024-05-10 15:39:17 +01:00
bcm590xx.c mfd: bcm590xx: Convert to use maple tree register cache 2024-02-23 14:58:03 +00:00
bcm2835-pm.c
bd9571mwv.c mfd: bd9571mwv: Convert to use maple tree register cache 2024-02-23 14:58:03 +00:00
cros_ec_dev.c mfd: cros_ec_dev: Add GPIO device if feature present on EC 2024-02-23 17:14:13 +00:00
cs42l43-i2c.c mfd: cs42l43: Add some missing dev_err_probe()s 2024-02-23 14:58:02 +00:00
cs42l43-sdw.c mfd: cs42l43: Add some missing dev_err_probe()s 2024-02-23 14:58:02 +00:00
cs42l43.c mfd: cs42l43: Update patching revision check 2024-05-10 15:39:17 +01:00
cs42l43.h mfd: cs42l43: Tidy up header includes 2024-02-23 14:58:01 +00:00
cs47l15-tables.c
cs47l24-tables.c
cs47l35-tables.c
cs47l85-tables.c
cs47l90-tables.c
cs47l92-tables.c
cs5535-mfd.c
da903x.c
da9052-core.c mfd: dialog: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
da9052-i2c.c
da9052-irq.c
da9052-spi.c
da9055-core.c mfd: dialog: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
da9055-i2c.c
da9062-core.c mfd: dialog: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
da9063-core.c
da9063-i2c.c mfd: dialog: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
da9063-irq.c
da9150-core.c mfd: dialog: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
db8500-prcmu-regs.h
db8500-prcmu.c
dln2.c
ene-kb3930.c
exynos-lpass.c
ezx-pcap.c
fsl-imx25-tsadc.c
gateworks-gsc.c
hi655x-pmic.c
hi6421-pmic-core.c
hi6421-spmi-pmic.c
intel_pmc_bxt.c
intel_quark_i2c_gpio.c
intel_soc_pmic_bxtwc.c
intel_soc_pmic_chtdc_ti.c
intel_soc_pmic_chtwc.c
intel_soc_pmic_crc.c
intel_soc_pmic_mrfld.c
intel-lpss-acpi.c
intel-lpss-pci.c mfd: intel-lpss: Switch over to MSI interrupts 2024-05-10 15:39:15 +01:00
intel-lpss.c mfd: intel-lpss: Introduce QUIRK_CLOCK_DIVIDER_UNITY for XPS 9530 2024-02-23 14:58:00 +00:00
intel-lpss.h mfd: intel-lpss: Introduce QUIRK_CLOCK_DIVIDER_UNITY for XPS 9530 2024-02-23 14:58:00 +00:00
intel-m10-bmc-core.c
intel-m10-bmc-pmci.c mfd: intel-m10-bmc: Change staging size to a variable 2024-05-10 15:39:16 +01:00
intel-m10-bmc-spi.c mfd: intel-m10-bmc: Change staging size to a variable 2024-05-10 15:39:16 +01:00
ioc3.c
ipaq-micro.c
iqs62x.c
janz-cmodio.c
Kconfig mfd: Tidy Kconfig dependency's parentheses 2024-05-10 15:39:16 +01:00
kempld-core.c mfd: kempld: Remove custom DMI matching code 2024-05-10 15:39:17 +01:00
khadas-mcu.c mfd: khadas-mcu: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
lm3533-core.c
lm3533-ctrlbank.c
lochnagar-i2c.c mfd: lochnagar-i2c: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
lp873x.c
lp3943.c
lp8788-irq.c
lp8788.c
lp87565.c
lpc_ich.c mfd: lpc_ich: Use ALIGN_DOWN() to obtain the start of the SPI base range 2024-02-23 14:58:00 +00:00
lpc_sch.c
madera-core.c
madera-i2c.c
madera-spi.c
madera.h
Makefile
max8907.c
max8925-core.c
max8925-i2c.c
max8997-irq.c
max8997.c
max8998-irq.c
max8998.c
max14577.c
max77541.c
max77620.c
max77650.c
max77686.c
max77693.c
max77714.c
max77843.c
mc13xxx-core.c mfd: mc13xxx: Use bitfield helpers 2024-02-23 15:53:29 +00:00
mc13xxx-i2c.c
mc13xxx-spi.c
mc13xxx.h
mcp-core.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
mcp-sa11x0.c
menelaus.c
menf21bmc.c
mfd-core.c mfd: core: Constify the struct device_type usage 2024-02-23 16:27:13 +00:00
motorola-cpcap.c
mp2629.c
mt6358-irq.c
mt6360-core.c
mt6370.c
mt6370.h
mt6397-core.c mfd: mt6397-core: Register mt6357 sound codec 2024-02-29 17:44:49 +00:00
mt6397-irq.c
mxs-lradc.c
ntxec.c
ocelot-core.c
ocelot-spi.c mfd: ocelot-spi: Use spi_sync_transfer() 2024-05-10 15:39:16 +01:00
ocelot.h
omap-usb-host.c mfd: omap-usb-host: Increase size of buffer to include all possible values 2024-02-23 14:58:00 +00:00
omap-usb-tll.c
omap-usb.h
palmas.c
pcf50633-adc.c
pcf50633-core.c
pcf50633-gpio.c
pcf50633-irq.c
qcom_rpm.c
qcom-pm8xxx.c
qcom-pm8008.c
qcom-spmi-pmic.c
rave-sp.c TTY/Serial driver update for 6.9-rc1 2024-03-21 12:44:10 -07:00
rc5t583-irq.c
rc5t583.c mfd: rc5t583: Convert to use maple tree register cache 2024-02-23 14:58:05 +00:00
rdc321x-southbridge.c
retu-mfd.c
rk8xx-core.c mfd: rk8xx: Add RK816 support 2024-05-03 09:15:30 +01:00
rk8xx-i2c.c mfd: rk8xx: Add RK816 support 2024-05-03 09:15:30 +01:00
rk8xx-spi.c mfd: rk8xx: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
rn5t618.c mfd: rn5t618: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
rohm-bd718x7.c mfd: rohm: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
rohm-bd9576.c mfd: rohm: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
rohm-bd71828.c mfd: rohm-bd71828: Add power off functionality 2024-05-10 15:39:16 +01:00
rsmu_core.c
rsmu_i2c.c mfd: rsmu: support I2C SMBus access 2024-05-10 15:39:18 +01:00
rsmu_spi.c mfd: rsmu: support I2C SMBus access 2024-05-10 15:39:18 +01:00
rsmu.h
rt4831.c
rt5033.c
rt5120.c
rz-mtu3.c
rz-mtu3.h
sec-core.c
sec-irq.c
si476x-cmd.c
si476x-i2c.c
si476x-prop.c mfd: si476x: Convert to use maple tree register cache 2024-02-23 14:58:05 +00:00
simple-mfd-i2c.c
simple-mfd-i2c.h
sky81452.c
sm501.c
smpro-core.c
sprd-sc27xx-spi.c
ssbi.c mfd: ssbi: Remove unused field 'slave' from 'struct ssbi' 2024-05-10 15:39:17 +01:00
sta2x11-mfd.c
stm32-lptimer.c
stm32-timers.c
stmfx.c mfd: stmfx: Convert to use maple tree register cache 2024-02-23 14:58:05 +00:00
stmpe-i2c.c
stmpe-spi.c
stmpe.c
stmpe.h
stpmic1.c mfd: stpmic1: Convert to use maple tree register cache 2024-02-23 14:58:05 +00:00
stw481x.c
sun4i-gpadc.c
sun6i-prcm.c
syscon.c mfd: syscon: Call of_node_put() only when of_parse_phandle() takes a ref 2024-02-23 16:02:02 +00:00
tc3589x.c
ti_am335x_tscadc.c
ti-lmu.c
timberdale.c mfd: timberdale: Remove redundant assignment to variable err 2024-05-10 15:39:17 +01:00
timberdale.h
tps6105x.c
tps6507x.c
tps6586x.c
tps6594-core.c mfd: tps6594-core: Add TI TPS65224 PMIC core 2024-05-03 10:07:06 +01:00
tps6594-i2c.c mfd: tps6594-i2c: Add TI TPS65224 PMIC I2C 2024-05-03 10:07:02 +01:00
tps6594-spi.c mfd: tps6594-spi: Add TI TPS65224 PMIC SPI 2024-05-03 10:07:04 +01:00
tps65010.c
tps65086.c
tps65090.c
tps65217.c
tps65218.c
tps65219.c
tps65910.c
tps65911-comparator.c
tps65912-core.c
tps65912-i2c.c
tps65912-spi.c
tqmx86.c
twl4030-audio.c
twl4030-irq.c
twl4030-power.c mfd: twl4030-power: Accept standard property for power controller 2024-02-23 16:12:03 +00:00
twl6030-irq.c
twl6040.c
twl-core.c mfd: twl-core: Add power off implementation for twl603x 2024-02-23 16:11:39 +00:00
twl-core.h
ucb1x00-assabet.c
ucb1x00-core.c
ucb1x00-ts.c
vexpress-sysreg.c
viperboard.c
vx855.c
wcd934x.c
wl1273-core.c
wm97xx-core.c mfd: wolfson: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
wm831x-auxadc.c mfd: wm831x: Remove redundant forever while loop 2024-02-23 14:58:01 +00:00
wm831x-core.c
wm831x-i2c.c
wm831x-irq.c
wm831x-otp.c
wm831x-spi.c
wm5102-tables.c mfd: wolfson: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
wm5110-tables.c mfd: wolfson: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
wm8350-core.c
wm8350-gpio.c
wm8350-i2c.c
wm8350-irq.c
wm8350-regmap.c mfd: wolfson: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
wm8400-core.c mfd: wolfson: Convert to use maple tree register cache 2024-02-23 14:58:04 +00:00
wm8994-core.c
wm8994-irq.c
wm8994-regmap.c
wm8994.h
wm8997-tables.c
wm8998-tables.c