1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

swconfig: treat struct switch_attr as constant

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15302 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2009-04-20 18:57:36 +00:00
parent 18920f62de
commit 3a49788081
2 changed files with 13 additions and 13 deletions

View File

@@ -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;