diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-10 08:00:08 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-08-09 23:44:26 +0300 |
commit | a07d73113febf0e17299338b9a6401955fe63b14 (patch) | |
tree | d34c61563fa624f515f0e4a98f854cfdb263b0b3 /drivers/hwmon/pmbus/pmbus.h | |
parent | 7b7a8b4237a0d7808df5aa12f49f7979f879cf12 (diff) | |
download | linux-a07d73113febf0e17299338b9a6401955fe63b14.tar.xz |
hwmon: (pmbus_core) Constify pmbus_regulator_ops
pmbus_regulator_ops is not modified after initialized, so make it const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/pmbus.h')
-rw-r--r-- | drivers/hwmon/pmbus/pmbus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h index 21f8b2fa7fc4..58262b54f09f 100644 --- a/drivers/hwmon/pmbus/pmbus.h +++ b/drivers/hwmon/pmbus/pmbus.h @@ -380,7 +380,7 @@ struct pmbus_driver_info { /* Regulator ops */ -extern struct regulator_ops pmbus_regulator_ops; +extern const struct regulator_ops pmbus_regulator_ops; /* Macro for filling in array of struct regulator_desc */ #define PMBUS_REGULATOR(_name, _id) \ |