summaryrefslogtreecommitdiff
path: root/drivers/acpi/pmic/intel_pmic.h
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.h
parent0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff)
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.h')
-rw-r--r--drivers/acpi/pmic/intel_pmic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/pmic/intel_pmic.h b/drivers/acpi/pmic/intel_pmic.h
index 89379476a1df..467a39966dc8 100644
--- a/drivers/acpi/pmic/intel_pmic.h
+++ b/drivers/acpi/pmic/intel_pmic.h
@@ -25,6 +25,8 @@ struct intel_pmic_opregion_data {
int pmic_i2c_address;
};
-int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle, struct regmap *regmap, struct intel_pmic_opregion_data *d);
+int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle,
+ struct regmap *regmap,
+ const struct intel_pmic_opregion_data *d);
#endif