summaryrefslogtreecommitdiffstats
path: root/net/dsa/hwmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/hwmon.c')
-rw-r--r--net/dsa/hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/hwmon.c b/net/dsa/hwmon.c
index 3a9cdf0b22b8..08831a811278 100644
--- a/net/dsa/hwmon.c
+++ b/net/dsa/hwmon.c
@@ -86,7 +86,7 @@ static umode_t dsa_hwmon_attrs_visible(struct kobject *kobj,
{
struct device *dev = container_of(kobj, struct device, kobj);
struct dsa_switch *ds = dev_get_drvdata(dev);
- struct dsa_switch_ops *ops = ds->ops;
+ const struct dsa_switch_ops *ops = ds->ops;
umode_t mode = attr->mode;
if (index == 1) {