linux/drivers/acpi/pmic
Christophe JAILLET cfff1997aa ACPI: PMIC: Constify struct pmic_table
'struct pmic_table' is not modified in these drivers.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text	   data	    bss	    dec	    hex	filename
   3811	    786	      0	   4597	   11f5	drivers/acpi/pmic/intel_pmic_xpower.o

   text	   data	    bss	    dec	    hex	filename
   4147	    450	      0	   4597	   11f5	drivers/acpi/pmic/intel_pmic_xpower.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/a6c9b1bcdf259adabbcaf91183d3f5ab87a98600.1719644292.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2024-07-01 20:06:02 +02:00
..
intel_pmic_bxtwc.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_bytcrc.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_chtcrc.c ACPI: PMIC: allow drivers to provide a custom lpat_raw_to_temp() function 2021-12-08 15:34:57 +01:00
intel_pmic_chtdc_ti.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_chtwc.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic_xpower.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic.c ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
intel_pmic.h ACPI: PMIC: Constify struct pmic_table 2024-07-01 20:06:02 +02:00
Kconfig mfd: tps68470: Remove tps68470 MFD driver 2021-06-17 13:12:18 +02:00
Makefile ACPI / PMIC: Move TPS68470 OpRegion driver to drivers/acpi/pmic/ 2020-09-15 19:40:59 +02:00
tps68470_pmic.c ACPI / PMIC: Sort headers alphabetically 2018-09-10 12:57:04 +02:00