miiphy: constify device name
The driver name does not need to be writable, so constify it. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
committed by
Ben Warren
parent
78b7a8ef8b
commit
5700bb6352
@@ -603,7 +603,7 @@ static void phy_change(struct eth_device *dev)
|
||||
* Returns:
|
||||
* The index where the device is located, -1 on error
|
||||
*/
|
||||
static int uec_miiphy_find_dev_by_name(char *devname)
|
||||
static int uec_miiphy_find_dev_by_name(const char *devname)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -628,7 +628,7 @@ static int uec_miiphy_find_dev_by_name(char *devname)
|
||||
* Returns:
|
||||
* 0 on success
|
||||
*/
|
||||
static int uec_miiphy_read(char *devname, unsigned char addr,
|
||||
static int uec_miiphy_read(const char *devname, unsigned char addr,
|
||||
unsigned char reg, unsigned short *value)
|
||||
{
|
||||
int devindex = 0;
|
||||
@@ -650,7 +650,7 @@ static int uec_miiphy_read(char *devname, unsigned char addr,
|
||||
* Returns:
|
||||
* 0 on success
|
||||
*/
|
||||
static int uec_miiphy_write(char *devname, unsigned char addr,
|
||||
static int uec_miiphy_write(const char *devname, unsigned char addr,
|
||||
unsigned char reg, unsigned short value)
|
||||
{
|
||||
int devindex = 0;
|
||||
|
||||
Reference in New Issue
Block a user