diff options
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r-- | include/net/switchdev.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 31b9038e07b0..d1c7f901ea61 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h | |||
@@ -132,7 +132,7 @@ struct switchdev_ops { | |||
132 | int (*switchdev_port_attr_get)(struct net_device *dev, | 132 | int (*switchdev_port_attr_get)(struct net_device *dev, |
133 | struct switchdev_attr *attr); | 133 | struct switchdev_attr *attr); |
134 | int (*switchdev_port_attr_set)(struct net_device *dev, | 134 | int (*switchdev_port_attr_set)(struct net_device *dev, |
135 | struct switchdev_attr *attr, | 135 | const struct switchdev_attr *attr, |
136 | struct switchdev_trans *trans); | 136 | struct switchdev_trans *trans); |
137 | int (*switchdev_port_obj_add)(struct net_device *dev, | 137 | int (*switchdev_port_obj_add)(struct net_device *dev, |
138 | const struct switchdev_obj *obj, | 138 | const struct switchdev_obj *obj, |
@@ -171,7 +171,7 @@ void switchdev_deferred_process(void); | |||
171 | int switchdev_port_attr_get(struct net_device *dev, | 171 | int switchdev_port_attr_get(struct net_device *dev, |
172 | struct switchdev_attr *attr); | 172 | struct switchdev_attr *attr); |
173 | int switchdev_port_attr_set(struct net_device *dev, | 173 | int switchdev_port_attr_set(struct net_device *dev, |
174 | struct switchdev_attr *attr); | 174 | const struct switchdev_attr *attr); |
175 | int switchdev_port_obj_add(struct net_device *dev, | 175 | int switchdev_port_obj_add(struct net_device *dev, |
176 | const struct switchdev_obj *obj); | 176 | const struct switchdev_obj *obj); |
177 | int switchdev_port_obj_del(struct net_device *dev, | 177 | int switchdev_port_obj_del(struct net_device *dev, |
@@ -220,7 +220,7 @@ static inline int switchdev_port_attr_get(struct net_device *dev, | |||
220 | } | 220 | } |
221 | 221 | ||
222 | static inline int switchdev_port_attr_set(struct net_device *dev, | 222 | static inline int switchdev_port_attr_set(struct net_device *dev, |
223 | struct switchdev_attr *attr) | 223 | const struct switchdev_attr *attr) |
224 | { | 224 | { |
225 | return -EOPNOTSUPP; | 225 | return -EOPNOTSUPP; |
226 | } | 226 | } |