Commit 69f90f6a authored by Cornelia Huck's avatar Cornelia Huck Committed by Martin Schwidefsky

[S390] dasd: Use const in busid functions.

We should use 'const char *' in the busid functions since the
strings are not modified anyway.
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c7a8548f
...@@ -86,10 +86,10 @@ static DEFINE_SPINLOCK(dasd_devmap_lock); ...@@ -86,10 +86,10 @@ static DEFINE_SPINLOCK(dasd_devmap_lock);
static struct list_head dasd_hashlists[256]; static struct list_head dasd_hashlists[256];
int dasd_max_devindex; int dasd_max_devindex;
static struct dasd_devmap *dasd_add_busid(char *, int); static struct dasd_devmap *dasd_add_busid(const char *, int);
static inline int static inline int
dasd_hash_busid(char *bus_id) dasd_hash_busid(const char *bus_id)
{ {
int hash, i; int hash, i;
...@@ -394,7 +394,7 @@ dasd_parse(void) ...@@ -394,7 +394,7 @@ dasd_parse(void)
* devices. * devices.
*/ */
static struct dasd_devmap * static struct dasd_devmap *
dasd_add_busid(char *bus_id, int features) dasd_add_busid(const char *bus_id, int features)
{ {
struct dasd_devmap *devmap, *new, *tmp; struct dasd_devmap *devmap, *new, *tmp;
int hash; int hash;
...@@ -430,7 +430,7 @@ dasd_add_busid(char *bus_id, int features) ...@@ -430,7 +430,7 @@ dasd_add_busid(char *bus_id, int features)
* Find devmap for device with given bus_id. * Find devmap for device with given bus_id.
*/ */
static struct dasd_devmap * static struct dasd_devmap *
dasd_find_busid(char *bus_id) dasd_find_busid(const char *bus_id)
{ {
struct dasd_devmap *devmap, *tmp; struct dasd_devmap *devmap, *tmp;
int hash; int hash;
...@@ -452,7 +452,7 @@ dasd_find_busid(char *bus_id) ...@@ -452,7 +452,7 @@ dasd_find_busid(char *bus_id)
* Check if busid has been added to the list of dasd ranges. * Check if busid has been added to the list of dasd ranges.
*/ */
int int
dasd_busid_known(char *bus_id) dasd_busid_known(const char *bus_id)
{ {
return IS_ERR(dasd_find_busid(bus_id)) ? -ENOENT : 0; return IS_ERR(dasd_find_busid(bus_id)) ? -ENOENT : 0;
} }
......
...@@ -598,7 +598,7 @@ struct dasd_device *dasd_device_from_cdev_locked(struct ccw_device *); ...@@ -598,7 +598,7 @@ struct dasd_device *dasd_device_from_cdev_locked(struct ccw_device *);
struct dasd_device *dasd_device_from_devindex(int); struct dasd_device *dasd_device_from_devindex(int);
int dasd_parse(void); int dasd_parse(void);
int dasd_busid_known(char *); int dasd_busid_known(const char *);
/* externals in dasd_gendisk.c */ /* externals in dasd_gendisk.c */
int dasd_gendisk_init(void); int dasd_gendisk_init(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment