Re: [PATCH] accel: constify the struct device_type usage

2024-02-26 Thread Oded Gabbay
On Mon, Feb 19, 2024 at 04:48:28PM -0300, Ricardo B. Marliere wrote: > Since commit aed65af1cc2f ("drivers: make device_type const"), the driver > core can properly handle constant struct device_type. Move the > accel_sysfs_device_minor variable to be a constant structure as well, > placing it

[PATCH] accel: constify the struct device_type usage

2024-02-19 Thread Ricardo B. Marliere
Since commit aed65af1cc2f ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Move the accel_sysfs_device_minor variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg