diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-04-17 13:23:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-17 18:54:14 -0400 |
commit | 0209d144e3097fee1fe5d38532e6f0919c80d1ea (patch) | |
tree | 8be0d13a7ca618200f5d096f7c05e208ea377d17 /net/dsa | |
parent | efde611b0afa47e64f2a329f4430830b91d77ea2 (diff) |
net: dsa: constify probed name
Change the dsa_switch_driver.probe function to return a const char *.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/dsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 60ea98481806..efa612f0ab9b 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
@@ -52,11 +52,11 @@ EXPORT_SYMBOL_GPL(unregister_switch_driver); | |||
52 | 52 | ||
53 | static struct dsa_switch_driver * | 53 | static struct dsa_switch_driver * |
54 | dsa_switch_probe(struct device *parent, struct device *host_dev, int sw_addr, | 54 | dsa_switch_probe(struct device *parent, struct device *host_dev, int sw_addr, |
55 | char **_name, void **priv) | 55 | const char **_name, void **priv) |
56 | { | 56 | { |
57 | struct dsa_switch_driver *ret; | 57 | struct dsa_switch_driver *ret; |
58 | struct list_head *list; | 58 | struct list_head *list; |
59 | char *name; | 59 | const char *name; |
60 | 60 | ||
61 | ret = NULL; | 61 | ret = NULL; |
62 | name = NULL; | 62 | name = NULL; |
@@ -383,7 +383,7 @@ dsa_switch_setup(struct dsa_switch_tree *dst, int index, | |||
383 | struct dsa_switch_driver *drv; | 383 | struct dsa_switch_driver *drv; |
384 | struct dsa_switch *ds; | 384 | struct dsa_switch *ds; |
385 | int ret; | 385 | int ret; |
386 | char *name; | 386 | const char *name; |
387 | void *priv; | 387 | void *priv; |
388 | 388 | ||
389 | /* | 389 | /* |