mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
7b7a8b4237
commit
a07d73113f
2 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
|
@ -1796,7 +1796,7 @@ static int pmbus_regulator_disable(struct regulator_dev *rdev)
|
|||
return _pmbus_regulator_on_off(rdev, 0);
|
||||
}
|
||||
|
||||
struct regulator_ops pmbus_regulator_ops = {
|
||||
const struct regulator_ops pmbus_regulator_ops = {
|
||||
.enable = pmbus_regulator_enable,
|
||||
.disable = pmbus_regulator_disable,
|
||||
.is_enabled = pmbus_regulator_is_enabled,
|
||||
|
|
Loading…
Reference in a new issue