diff options
Diffstat (limited to 'drivers/s390/net/lcs.c')
| -rw-r--r-- | drivers/s390/net/lcs.c | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 38f312664ce7..9fd8e6f07a03 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c @@ -1899,14 +1899,14 @@ lcs_open_device(struct net_device *dev)  static ssize_t  lcs_portno_show (struct device *dev, struct device_attribute *attr, char *buf)  { -        struct lcs_card *card; +	struct lcs_card *card;  	card = dev_get_drvdata(dev); -        if (!card) -                return 0; +	if (!card) +		return 0; -        return sprintf(buf, "%d\n", card->portno); +	return sysfs_emit(buf, "%d\n", card->portno);  }  /* @@ -1956,7 +1956,8 @@ lcs_type_show(struct device *dev, struct device_attribute *attr, char *buf)  	if (!cgdev)  		return -ENODEV; -	return sprintf(buf, "%s\n", lcs_type[cgdev->cdev[0]->id.driver_info]); +	return sysfs_emit(buf, "%s\n", +			  lcs_type[cgdev->cdev[0]->id.driver_info]);  }  static DEVICE_ATTR(type, 0444, lcs_type_show, NULL); @@ -1968,7 +1969,7 @@ lcs_timeout_show(struct device *dev, struct device_attribute *attr, char *buf)  	card = dev_get_drvdata(dev); -	return card ? sprintf(buf, "%u\n", card->lancmd_timeout) : 0; +	return card ? sysfs_emit(buf, "%u\n", card->lancmd_timeout) : 0;  }  static ssize_t  |