Re: [PATCH] thermal/drivers/imx9: Constify struct thermal_zone_device_ops
From: Daniel Lezcano
Date: Fri Sep 18 2026 - 06:30:54 EST
On 8/8/26 22:23, Christophe JAILLET wrote:
'struct thermal_zone_device_ops' is not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
8567 2144 0 10711 29d7 drivers/thermal/imx91_thermal.o
After:
=====
text data bss dec hex filename
8695 2016 0 10711 29d7 drivers/thermal/imx91_thermal.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
---
Applied, thanks