diff options
author | Greg Kroah-Hartman <greg@kroah.com> | 2014-12-23 16:09:26 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2015-01-02 13:08:03 -0800 |
commit | 88e70a6846dbc3cb94d3dd2bb488bc743a1f14f1 (patch) | |
tree | 92d55569d442c5f86cdd48f3c9bdfc516a6fba78 /drivers/staging/greybus/bundle.c | |
parent | 23ad7bb96bb59e1f91a95a494cca303a8f7d300a (diff) |
greybus: sysfs: put a \n at the end of all sysfs files
Right now some sysfs attributes have \n and some do not, so fix that and
put \n at the end of all of them to make it easier to parse things
properly in userspace.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.c')
-rw-r--r-- | drivers/staging/greybus/bundle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index 96153c54a687..d0206602eacd 100644 --- a/drivers/staging/greybus/bundle.c +++ b/drivers/staging/greybus/bundle.c @@ -18,7 +18,7 @@ static ssize_t device_id_show(struct device *dev, struct device_attribute *attr, { struct gb_bundle *bundle = to_gb_bundle(dev); - return sprintf(buf, "%d", bundle->device_id); + return sprintf(buf, "%d\n", bundle->device_id); } static DEVICE_ATTR_RO(device_id); |