linux/drivers
Greg Kroah-Hartman 2243acd50a driver core: class: remove struct class_interface * from callbacks
The add_dev and remove_dev callbacks in struct class_interface currently
pass in a pointer back to the class_interface structure that is calling
them, but none of the callback implementations actually use this pointer
as it is pointless (the structure is known, the driver passed it in in
the first place if it is really needed again.)

So clean this up and just remove the pointer from the callbacks and fix
up all callback functions.

Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Allen Hubbe <allenbh@gmail.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Doug Gilbert <dgilbert@interlog.com>
Cc: John Stultz <jstultz@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Wang Weiyang <wangweiyang2@huawei.com>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Cc: Jakob Koschel <jakobkoschel@gmail.com>
Cc: Cai Xinchen <caixinchen1@huawei.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Acked-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/2023040250-pushover-platter-509c@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-03 21:42:52 +02:00
..
accel Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
accessibility
acpi Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
amba
android Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
ata Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
atm atm: idt77252: fix kmemleak when rmmod idt77252 2023-03-21 20:19:28 -07:00
auxdisplay
base driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
bcma
block Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
bluetooth Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work 2023-03-23 13:09:38 -07:00
bus Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
cdrom
char Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
clk clk: k210: remove an implicit 64-bit division 2023-03-06 14:41:20 -08:00
clocksource Updates for timekeeping, timers and clockevent/source drivers: 2023-02-21 09:45:13 -08:00
comedi driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
connector
counter
cpufreq cpufreq: amd-pstate: move to use bus_get_dev_root() 2023-03-17 15:30:07 +01:00
cpuidle Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
crypto crypto: hisilicon/qm - make struct bus_type * const 2023-03-23 13:21:28 +01:00
cxl driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
dax cxl for v6.3 2023-02-25 09:19:23 -08:00
dca driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
devfreq driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
dio
dma dmaengine: idxd: use const struct bus_type * 2023-03-23 13:21:42 +01:00
dma-buf driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
edac EDAC/sysfs: move to use bus_get_dev_root() 2023-03-22 09:25:49 +01:00
eisa
extcon driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
firewire Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
firmware ARM: SoC fixes for 6.3, part 2 2023-03-24 15:38:13 -07:00
fpga driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
fsi
gnss driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
gpio Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
gpu Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
greybus
hid Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
hsi Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
hte
hv driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
hwmon driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
hwspinlock
hwtracing Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
i2c Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
i3c I3C for 6.3 2023-02-28 16:05:01 -08:00
idle Power management updates for 6.3-rc1 2023-02-21 12:13:58 -08:00
iio Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
infiniband driver core: class: mark the struct class for sysfs callbacks as constant 2023-03-29 07:54:58 +02:00
input Input updates for v6.3-rc4 2023-04-01 14:09:51 -07:00
interconnect interconnect: exynos: drop redundant link destroy 2023-03-13 21:13:48 +02:00
iommu Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
ipack Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
irqchip irqchip/mbigen: move to use bus_get_dev_root() 2023-03-17 15:30:12 +01:00
isdn mISDN: remove unneeded mISDN_class_release() 2023-03-30 09:54:49 +02:00
leds driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
macintosh driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
mailbox mailbox: qcom-apcs-ipc: add IPQ5332 APSS clock support 2023-02-23 14:47:13 -06:00
mcb
md block-6.3-2023-03-30 2023-03-31 12:35:03 -07:00
media Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
memory memory: tegra30-emc: fix interconnect registration race 2023-03-13 21:13:49 +02:00
memstick MMC core: 2023-02-27 09:47:26 -08:00
message
mfd drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
misc Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
mmc mmc: dw_mmc-starfive: Fix initialization of prev_err 2023-03-09 15:33:51 +01:00
most driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
mtd Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
mux drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
net driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
nfc nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition 2023-03-15 00:28:23 -07:00
ntb driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
nubus
nvdimm driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
nvme Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
nvmem nvmem: core: return -ENOENT if nvmem cell is not found 2023-03-10 10:55:49 +01:00
of IOMMU Updates for Linux v6.3: 2023-02-24 13:40:13 -08:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-02-16 13:48:53 +01:00
parisc
parport Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00
pci Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
pcmcia driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
peci driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
perf RISC-V Patches for the 6.3 Merge Window, Part 2 2023-03-03 09:32:51 -08:00
phy driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
pinctrl pinctrl: amd: Disable and mask interrupts on resume 2023-03-28 15:20:18 +02:00
platform Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
pnp
power Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
powercap More power management updates for 6.3-rc1 2023-03-03 10:30:58 -08:00
pps driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
ps3
ptp Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
pwm drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
rapidio driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
ras
regulator regulator: Handle deferred clk 2023-03-27 01:42:01 +01:00
remoteproc ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
reset
rpmsg driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
rtc driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
s390 Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
sbus driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
scsi driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
sh sh: intc: move to use bus_get_dev_root() 2023-03-17 15:29:55 +01:00
siox
slimbus
soc Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
soundwire soundwire updates for 6.3 2023-02-24 17:29:52 -08:00
spi driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
spmi
ssb
staging Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
target scsi: target: iscsi: Fix an error message in iscsi_check_key() 2023-03-06 16:50:42 -05:00
tc
tee Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
thermal Merge branch 'thermal-intel-fixes' 2023-03-31 12:02:46 +02:00
thunderbolt thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit 2023-03-20 19:00:58 +02:00
tty Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
ufs scsi: ufs: mcq: Use active_reqs to check busy in clock scaling 2023-03-09 21:09:28 -05:00
uio - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
usb Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
vdpa Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
vfio Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
vhost Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
video Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
virt virt/coco/sev-guest: Add throttling awareness 2023-03-13 13:29:27 +01:00
virtio virtio,vhost,vdpa: features, fixes 2023-02-25 11:48:02 -08:00
vlynq
w1 w1: ds2482: Convert to i2c's .probe_new() 2023-03-09 21:58:57 +01:00
watchdog drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
xen xen: branch for v6.3-rc3 2023-03-17 10:45:49 -07:00
zorro
Kconfig
Makefile Kbuild updates for v6.3 2023-02-26 11:53:25 -08:00