linux/drivers/macintosh
Ricardo B. Marliere 83bc680e87 macintosh/adb: make adb_dev_class constant
Since commit 43a7206b09 ("driver core: class: make class_register()
take a const *"), the driver core allows for struct class to be in
read-only memory, so move the adb_dev_class structure to be declared
at build time placing it into read-only memory, instead of having to
be dynamically allocated at boot time.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240305-macintosh-v1-1-9c3f4f882045@marliere.net
2024-03-07 00:13:28 +11:00
..
ams powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
adb-iop.c macintosh/adb-iop: Use big-endian autopoll mask 2021-01-25 13:23:38 +01:00
adb.c macintosh/adb: make adb_dev_class constant 2024-03-07 00:13:28 +11:00
adbhid.c macintosh/adb: Use swap() to make code cleaner 2022-05-04 19:37:45 +10:00
ans-lcd.c macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
ans-lcd.h
apm_emu.c
Kconfig macintosh: via-pmu-led: requires ATA to be set 2023-03-30 23:36:34 +11:00
mac_hid.c macintosh: Remove the now superfluous sentinel element from ctl_table array 2023-10-11 12:16:13 -07:00
macio_asic.c powerpc: pmac: make macio_bus_type const 2024-02-15 00:14:06 +11:00
macio_sysfs.c macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
macio-adb.c macintosh/macio-adb: add missing iounmap() on error in macio_init() 2023-10-19 17:16:20 +11:00
Makefile macintosh/via-pmu: Fix build failure when CONFIG_INPUT is disabled 2022-05-22 15:58:30 +10:00
mediabay.c macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
rack-meter.c macintosh: Use of_property_present() for testing DT property presence 2023-03-30 23:36:35 +11:00
smu.c macintosh: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
therm_adt746x.c macintosh: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
therm_windtunnel.c macintosh: therm_windtunnel: Convert to platform remove callback returning void 2024-02-16 12:35:14 +11:00
via-cuda.c macintosh: Use of_address_to_resource() 2023-06-21 14:08:54 +10:00
via-macii.c isystem: trim/fixup stdarg.h and other headers 2021-08-19 09:02:55 +09:00
via-pmu-backlight.c macintosh/via-pmu-backlight: Use backlight helper 2022-11-24 23:12:17 +11:00
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
via-pmu.c macintosh: Use of_address_to_resource() 2023-06-21 14:08:54 +10:00
windfarm_ad7417_sensor.c macintosh: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
windfarm_core.c macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
windfarm_cpufreq_clamp.c macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
windfarm_fcu_controls.c macintosh: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
windfarm_lm75_sensor.c macintosh: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
windfarm_lm87_sensor.c macintosh: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
windfarm_max6690_sensor.c macintosh: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
windfarm_mpu.h macintosh: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
windfarm_pid.c
windfarm_pid.h macintosh/windfarm_pid: Add header file macro definition 2022-11-24 23:12:18 +11:00
windfarm_pm72.c macintosh: windfarm_pm72: Convert to platform remove callback returning void 2024-02-16 12:35:14 +11:00
windfarm_pm81.c macintosh: windfarm_pm81: Convert to platform remove callback returning void 2024-02-16 12:35:14 +11:00
windfarm_pm91.c macintosh: windfarm_pm91: Convert to platform remove callback returning void 2024-02-16 12:35:15 +11:00
windfarm_pm112.c macintosh: windfarm_pm112: Convert to platform remove callback returning void 2024-02-16 12:35:14 +11:00
windfarm_pm121.c macintosh: windfarm_pm121: Convert to platform remove callback returning void 2024-02-16 12:35:14 +11:00
windfarm_rm31.c macintosh: windfarm_rm31: Convert to platform remove callback returning void 2024-02-16 12:35:15 +11:00
windfarm_smu_controls.c macintosh: Switch to use for_each_child_of_node() macro 2022-11-24 23:12:18 +11:00
windfarm_smu_sat.c macintosh: Switch i2c drivers back to use .probe() 2023-06-14 12:46:41 +10:00
windfarm_smu_sensors.c macintosh: windfarm: Use unsigned type for 1-bit bitfields 2023-02-16 10:16:31 +11:00
windfarm.h