aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2015-09-21 15:51:14 -0400
committerFelipe Balbi <balbi@ti.com>2015-10-01 13:40:23 -0400
commitfa50bff63689849175d65f4923691944556fbacc (patch)
tree2063f270da02fd6c3f1db6d5bae593deff49bb8b
parent902d03c7f3900b8a5d2997303b87dc12397bea71 (diff)
usb: gadget: SourceSink: Fix show methods for attributes
Most of USB functions place new line after attribute value. Let's follow this convention also in source sink function as it improves readability. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/function/f_sourcesink.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/gadget/function/f_sourcesink.c b/drivers/usb/gadget/function/f_sourcesink.c
index 1353465ca599..68efa01bdf4d 100644
--- a/drivers/usb/gadget/function/f_sourcesink.c
+++ b/drivers/usb/gadget/function/f_sourcesink.c
@@ -906,7 +906,7 @@ static ssize_t f_ss_opts_pattern_show(struct f_ss_opts *opts, char *page)
906 int result; 906 int result;
907 907
908 mutex_lock(&opts->lock); 908 mutex_lock(&opts->lock);
909 result = sprintf(page, "%u", opts->pattern); 909 result = sprintf(page, "%u\n", opts->pattern);
910 mutex_unlock(&opts->lock); 910 mutex_unlock(&opts->lock);
911 911
912 return result; 912 return result;
@@ -950,7 +950,7 @@ static ssize_t f_ss_opts_isoc_interval_show(struct f_ss_opts *opts, char *page)
950 int result; 950 int result;
951 951
952 mutex_lock(&opts->lock); 952 mutex_lock(&opts->lock);
953 result = sprintf(page, "%u", opts->isoc_interval); 953 result = sprintf(page, "%u\n", opts->isoc_interval);
954 mutex_unlock(&opts->lock); 954 mutex_unlock(&opts->lock);
955 955
956 return result; 956 return result;
@@ -994,7 +994,7 @@ static ssize_t f_ss_opts_isoc_maxpacket_show(struct f_ss_opts *opts, char *page)
994 int result; 994 int result;
995 995
996 mutex_lock(&opts->lock); 996 mutex_lock(&opts->lock);
997 result = sprintf(page, "%u", opts->isoc_maxpacket); 997 result = sprintf(page, "%u\n", opts->isoc_maxpacket);
998 mutex_unlock(&opts->lock); 998 mutex_unlock(&opts->lock);
999 999
1000 return result; 1000 return result;
@@ -1038,7 +1038,7 @@ static ssize_t f_ss_opts_isoc_mult_show(struct f_ss_opts *opts, char *page)
1038 int result; 1038 int result;
1039 1039
1040 mutex_lock(&opts->lock); 1040 mutex_lock(&opts->lock);
1041 result = sprintf(page, "%u", opts->isoc_mult); 1041 result = sprintf(page, "%u\n", opts->isoc_mult);
1042 mutex_unlock(&opts->lock); 1042 mutex_unlock(&opts->lock);
1043 1043
1044 return result; 1044 return result;
@@ -1082,7 +1082,7 @@ static ssize_t f_ss_opts_isoc_maxburst_show(struct f_ss_opts *opts, char *page)
1082 int result; 1082 int result;
1083 1083
1084 mutex_lock(&opts->lock); 1084 mutex_lock(&opts->lock);
1085 result = sprintf(page, "%u", opts->isoc_maxburst); 1085 result = sprintf(page, "%u\n", opts->isoc_maxburst);
1086 mutex_unlock(&opts->lock); 1086 mutex_unlock(&opts->lock);
1087 1087
1088 return result; 1088 return result;
@@ -1126,7 +1126,7 @@ static ssize_t f_ss_opts_bulk_buflen_show(struct f_ss_opts *opts, char *page)
1126 int result; 1126 int result;
1127 1127
1128 mutex_lock(&opts->lock); 1128 mutex_lock(&opts->lock);
1129 result = sprintf(page, "%u", opts->bulk_buflen); 1129 result = sprintf(page, "%u\n", opts->bulk_buflen);
1130 mutex_unlock(&opts->lock); 1130 mutex_unlock(&opts->lock);
1131 1131
1132 return result; 1132 return result;