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
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
clocksource
comedi
connector
counter
cpufreq
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
dca
devfreq
dio
dma dmaengine: idxd: use const struct bus_type * 2023-03-23 13:21:42 +01:00
dma-buf
edac EDAC/sysfs: move to use bus_get_dev_root() 2023-03-22 09:25:49 +01:00
eisa
extcon
firewire
firmware ARM: SoC fixes for 6.3, part 2 2023-03-24 15:38:13 -07:00
fpga
fsi
gnss
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
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
i2c Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
i3c
idle
iio
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
iommu Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
ipack
irqchip
isdn mISDN: remove unneeded mISDN_class_release() 2023-03-30 09:54:49 +02:00
leds
macintosh
mailbox
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
memstick
message
mfd
misc Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
mmc
most
mtd Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
mux
net driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
nfc
ntb driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
nubus
nvdimm
nvme Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
nvmem
of
opp
parisc
parport
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
phy
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
pps
ps3
ptp Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
pwm
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
reset
rpmsg
rtc
s390 Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
sbus
scsi driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
sh
siox
slimbus
soc Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
soundwire
spi
spmi
ssb
staging Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
target
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
tty Merge 6.3-rc5 into driver-core-next 2023-04-03 09:33:30 +02:00
ufs
uio
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
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile