[PATCH 1/4] powerpc: cell: make spu_subsys const

2024-02-04 Thread Ricardo B. Marliere
Now that the driver core can properly handle constant struct bus_type, move the spu_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B

[PATCH 0/4] powerpc: struct bus_type cleanup

2024-02-04 Thread Ricardo B. Marliere
%40linuxfoundation.org+s%3A%22make%22+and+s%3A%22const%22 [2]: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=bus_cleanup&id=26105f537f0c60eacfeb430abd2e05d7ddcdd8aa Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- Ricardo B. Marliere (4): pow

[PATCH 2/4] powerpc: ps3: make ps3_system_bus_type const

2024-02-04 Thread Ricardo B. Marliere
B. Marliere --- arch/powerpc/platforms/ps3/system-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c index d6b5f5ecd515..b4298e98ffe8 100644 --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b

[PATCH 3/4] powerpc: pseries: make cmm_subsys const

2024-02-04 Thread Ricardo B. Marliere
Now that the driver core can properly handle constant struct bus_type, move the cmm_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B

[PATCH 4/4] powerpc: pseries: make suspend_subsys const

2024-02-04 Thread Ricardo B. Marliere
Now that the driver core can properly handle constant struct bus_type, move the suspend_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B

[PATCH 0/4] powerpc: struct bus_type cleanup

2024-02-09 Thread Ricardo B. Marliere
c64le-power8--glibc--stable-2023.11-1 toolchain. --- [1]: https://lore.kernel.org/lkml/?q=f%3Agregkh%40linuxfoundation.org+s%3A%22make%22+and+s%3A%22const%22 Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- Ricardo B. Marliere (4): powerpc: vio: move device attributes into

[PATCH 1/4] powerpc: vio: move device attributes into a new ifdef

2024-02-09 Thread Ricardo B. Marliere
vio_cmo_sysfs_init function. Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/powerpc/platforms/pseries/vio.c | 59 +--- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms

[PATCH 2/4] powerpc: vio: make vio_bus_type const

2024-02-09 Thread Ricardo B. Marliere
Now that the driver core can properly handle constant struct bus_type, move the vio_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B

[PATCH 3/4] powerpc: mpic: make mpic_subsys const

2024-02-09 Thread Ricardo B. Marliere
Now that the driver core can properly handle constant struct bus_type, move the mpic_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B

[PATCH 4/4] powerpc: ibmebus: make ibmebus_bus_type const

2024-02-09 Thread Ricardo B. Marliere
Now that the driver core can properly handle constant struct bus_type, move the ibmebus_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B

Re: [PATCH 0/4] powerpc: struct bus_type cleanup

2024-02-12 Thread Ricardo B. Marliere
Please disregard this series, I will send a v2. Thank you, - Ricardo.

[PATCH v2 0/5] powerpc: struct bus_type cleanup

2024-02-12 Thread Ricardo B. Marliere
c64le-power8--glibc--stable-2023.11-1 toolchain. --- [1]: https://lore.kernel.org/lkml/?q=f%3Agregkh%40linuxfoundation.org+s%3A%22make%22+and+s%3A%22const%22 Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- Changes in v2: - Added a new patch to make macio_bus_type const. - Imp

[PATCH v2 1/5] powerpc: vio: move device attributes into a new ifdef

2024-02-12 Thread Ricardo B. Marliere
vio_cmo_sysfs_init function. Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/powerpc/platforms/pseries/vio.c | 59 +--- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms

[PATCH v2 2/5] powerpc: vio: make vio_bus_type const

2024-02-12 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/powerpc/include/asm/vio.h | 2 +- arch/powerpc/platforms/pseries/vio.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/vio.h b/arch/powerpc/i

[PATCH v2 3/5] powerpc: mpic: make mpic_subsys const

2024-02-12 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/powerpc/include/asm/mpic.h | 2 +- arch/powerpc/sysdev/mpic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/mpic.h b/arch/powerpc/include/asm/mp

[PATCH v2 4/5] powerpc: pmac: make macio_bus_type const

2024-02-12 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/powerpc/include/asm/macio.h | 2 +- drivers/macintosh/macio_asic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/macio.h b/arch/powerpc/i

[PATCH v2 5/5] powerpc: ibmebus: make ibmebus_bus_type const

2024-02-12 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/powerpc/include/asm/ibmebus.h | 2 +- arch/powerpc/platforms/pseries/ibmebus.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/ibmebus

Re: [PATCH v2 0/5] powerpc: struct bus_type cleanup

2024-02-13 Thread Ricardo B. Marliere
Hi Christophe, On 13 Feb 08:05, Christophe Leroy wrote: > Hi > > Le 12/02/2024 à 21:04, Ricardo B. Marliere a écrit : > > This series is part of an effort to cleanup the users of the driver > > core, as can be seen in many recent patches authored by Greg across the > >

[PATCH 0/2] ALSA: struct bus_type cleanup

2024-02-14 Thread Ricardo B. Marliere
: Jaroslav Kysela To: Takashi Iwai Cc: Cc: Cc: Cc: Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- Ricardo B. Marliere (2): ALSA: aoa: make soundbus_bus_type const ALSA: seq: make snd_seq_bus_type const sound/aoa/soundbus/core.c | 2 +- sound/core/seq_device.c | 2

[PATCH 1/2] ALSA: aoa: make soundbus_bus_type const

2024-02-14 Thread Ricardo B. Marliere
ntime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- sound/aoa/soundbus/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/aoa/soundbus/core.c b/sound/aoa/soundbus/core.c index 8f24a3eea16b..2a295f610594 100644 --- a

[PATCH 2/2] ALSA: seq: make snd_seq_bus_type const

2024-02-14 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- sound/core/seq_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/seq_device.c b/sound/core/seq_device.c index 7f3fd8eb016f..654d620d0199 100644 --- a/

[PATCH next] bus: fsl-mc: constify the struct device_type usage

2024-02-19 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- drivers/bus/fsl-mc/fsl-mc-bus.c | 32 include/linux/fsl/mc.h | 30 +++--- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c

[PATCH] macintosh: adb: make adb_dev_class constant

2024-03-05 Thread Ricardo B. Marliere
ynamically allocated at boot time. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- drivers/macintosh/adb.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 05

[PATCH v2] bus: fsl-mc: constify the struct device_type usage

2024-09-04 Thread Ricardo B. Marliere
Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- v1->v2: - Added missing specifiers regarding: https://lore.kernel.org/oe-kbuild-all/202403091124.vozgg1lj-...@intel.com/ https://lore.kernel.org/oe-kbuild-all/202403090918.89zrhuf2-...@int

Re: [PATCH v2] bus: fsl-mc: constify the struct device_type usage

2024-09-04 Thread Ricardo B. Marliere
On 4 Sep 24 11:17, Ricardo B. Marliere wrote: > Since commit aed65af1cc2f ("drivers: make device_type const"), the driver > core can properly handle constant struct device_type. Move all the > device_type variables used in the bus to be constant structures as well, > pla