summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/files/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-20 18:57:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-20 18:57:36 +0000
commit787e9fcf93c6c7cf670d23589e1157266bae6c29 (patch)
treefcb693d6807c0f0e1c760aa5e652c50aff29bc49 /target/linux/generic-2.6/files/include
parentcd80e16a80fe60da76b529636f31b359801bdbac (diff)
downloadmtk-20170518-787e9fcf93c6c7cf670d23589e1157266bae6c29.zip
mtk-20170518-787e9fcf93c6c7cf670d23589e1157266bae6c29.tar.gz
mtk-20170518-787e9fcf93c6c7cf670d23589e1157266bae6c29.tar.bz2
swconfig: treat struct switch_attr as constant
SVN-Revision: 15302
Diffstat (limited to 'target/linux/generic-2.6/files/include')
-rw-r--r--target/linux/generic-2.6/files/include/linux/switch.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic-2.6/files/include/linux/switch.h b/target/linux/generic-2.6/files/include/linux/switch.h
index 9411e84..ef6b8f2 100644
--- a/target/linux/generic-2.6/files/include/linux/switch.h
+++ b/target/linux/generic-2.6/files/include/linux/switch.h
@@ -104,7 +104,7 @@ void unregister_switch(struct switch_dev *dev);
struct switch_attrlist {
/* filled in by the driver */
int n_attr;
- struct switch_attr *attr;
+ const struct switch_attr *attr;
};
@@ -138,7 +138,7 @@ struct switch_port {
};
struct switch_val {
- struct switch_attr *attr;
+ const struct switch_attr *attr;
int port_vlan;
int len;
union {
@@ -154,8 +154,8 @@ struct switch_attr {
const char *name;
const char *description;
- int (*set)(struct switch_dev *dev, struct switch_attr *attr, struct switch_val *val);
- int (*get)(struct switch_dev *dev, struct switch_attr *attr, struct switch_val *val);
+ int (*set)(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val);
+ int (*get)(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val);
/* for driver internal use */
int id;