EDAC: constantify the struct bus_type usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2023 13:13:10 +0000 (14:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 13:34:27 +0000 (14:34 +0100)
commitf36be9ce8146faabdbbf74ee0499edb2039c53a5
treefa089adc8503b26a2f0bbff80629d879c104e7a5
parentc810729fe6471aa18e2b05bde4b7fb9d872b4ca0
EDAC: constantify the struct bus_type usage

In many places in the edac code, struct bus_type pointers are passed
around and then eventually sent to the driver core, which can handle a
constant pointer.  So constantify all of the edac usage of these as well
because the data in them is never modified by the edac code either.

Cc: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Robert Richter <rric@kernel.org>
Cc: <linux-edac@vger.kernel.org>
Link: https://lore.kernel.org/r/2023121909-tribute-punctuate-4b22@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/edac_device.h
drivers/edac/edac_device_sysfs.c
drivers/edac/edac_module.c
drivers/edac/edac_pci_sysfs.c
include/linux/edac.h