diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-08 14:52:08 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-09 15:44:50 -0500 |
commit | a82f67afe8e297834bedafa529941d9d0808caf8 (patch) | |
tree | 4e47358cacf8e32212e27b6d78f4d184e2799982 /net/dsa/hwmon.c | |
parent | ab3d408d3f40f939d46a32b1c24aa2833a13b846 (diff) |
net: dsa: Make dsa_switch_ops const
Now that we have properly encapsulated and made drivers utilize exported
functions, we can switch dsa_switch_ops to be a annotated with const.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/hwmon.c')
-rw-r--r-- | net/dsa/hwmon.c | 2 |
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) { |