Re: [PATCH v2 1/2] video: backlight: make backlight_class constant

2024-03-28 Thread Lee Jones
On Thu, 28 Mar 2024, Lee Jones wrote: > On Thu, 28 Mar 2024 12:59:06 +0100, Greg Kroah-Hartman wrote: > > Since commit 43a7206b0963 ("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 backlight_class

Re: [PATCH v2 1/2] video: backlight: make backlight_class constant

2024-03-28 Thread Lee Jones
On Thu, 28 Mar 2024 12:59:06 +0100, Greg Kroah-Hartman wrote: > Since commit 43a7206b0963 ("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 backlight_class structure to be declared at build time >

[PATCH v2 1/2] video: backlight: make backlight_class constant

2024-03-28 Thread Greg Kroah-Hartman
From: "Ricardo B. Marliere" Since commit 43a7206b0963 ("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 backlight_class structure to be declared at build time placing it into read-only memory, instead of