summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pmic/intel_pmic_chtdc_ti.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-11-26 16:21:07 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-08 15:34:57 +0100
commite172e650eda3274964df3a74cf12d210eae9a044 (patch)
treeb2f0cedb7dea3034c5fd185ca9ad229167f25db4 /drivers/acpi/pmic/intel_pmic_chtdc_ti.c
parent0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff)
downloadlinux-e172e650eda3274964df3a74cf12d210eae9a044.tar.bz2
ACPI: PMIC: constify all struct intel_pmic_opregion_data declarations
The struct intel_pmic_opregion_data declarations never change, constify them all. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/pmic/intel_pmic_chtdc_ti.c')
-rw-r--r--drivers/acpi/pmic/intel_pmic_chtdc_ti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pmic/intel_pmic_chtdc_ti.c b/drivers/acpi/pmic/intel_pmic_chtdc_ti.c
index fef7831d0d63..cb444ddec5a0 100644
--- a/drivers/acpi/pmic/intel_pmic_chtdc_ti.c
+++ b/drivers/acpi/pmic/intel_pmic_chtdc_ti.c
@@ -94,7 +94,7 @@ static int chtdc_ti_pmic_get_raw_temp(struct regmap *regmap, int reg)
return ((buf[0] & 0x03) << 8) | buf[1];
}
-static struct intel_pmic_opregion_data chtdc_ti_pmic_opregion_data = {
+static const struct intel_pmic_opregion_data chtdc_ti_pmic_opregion_data = {
.get_power = chtdc_ti_pmic_get_power,
.update_power = chtdc_ti_pmic_update_power,
.get_raw_temp = chtdc_ti_pmic_get_raw_temp,