summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/u_ether_configfs.h
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-21 11:48:44 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-24 12:04:07 +0300
commit00b6c62eb74d665caa7e399ffd5da55572b61c50 (patch)
treef987ebfe13b2e89aa4d0d9b82cb0ee28b71d37a0 /drivers/usb/gadget/function/u_ether_configfs.h
parent8236800da115a3e24b9165c573067343f51cf5ea (diff)
downloadlinux-00b6c62eb74d665caa7e399ffd5da55572b61c50.tar.xz
usb: gadget: ether: Add \n to each attribute of ethernet functions
Generally in SysFS and ConfigFS files are new line terminated. Also most of USB functions adds a trailing newline to each attribute. Let's follow this convention also in ethernet functions. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/u_ether_configfs.h')
-rw-r--r--drivers/usb/gadget/function/u_ether_configfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/u_ether_configfs.h b/drivers/usb/gadget/function/u_ether_configfs.h
index 4f47289fcf7c..c71133de17e7 100644
--- a/drivers/usb/gadget/function/u_ether_configfs.h
+++ b/drivers/usb/gadget/function/u_ether_configfs.h
@@ -108,7 +108,7 @@
mutex_lock(&opts->lock); \
qmult = gether_get_qmult(opts->net); \
mutex_unlock(&opts->lock); \
- return sprintf(page, "%d", qmult); \
+ return sprintf(page, "%d\n", qmult); \
} \
\
static ssize_t _f_##_opts_qmult_store(struct config_item *item, \