projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f2df4
)
greybus: svc: fix pwrmon return value
author
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 21 Apr 2016 09:43:37 +0000
(11:43 +0200)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Thu, 21 Apr 2016 11:19:33 +0000
(20:19 +0900)
Errno -ENOSYS is reserved for missing syscalls, replace it with ENOMSG.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/svc.c
b/drivers/staging/greybus/svc.c
index ff89da6172c298654bcd6d554ecbdd637e597c73..1cf608987c3bee7c5133a86e96b8ec9a9f65d8d3 100644
(file)
--- a/
drivers/staging/greybus/svc.c
+++ b/
drivers/staging/greybus/svc.c
@@
-161,7
+161,7
@@
static int gb_svc_pwrmon_sample_get(struct gb_svc *svc, u8 rail_id,
case GB_SVC_PWRMON_GET_SAMPLE_INVAL:
return -EINVAL;
case GB_SVC_PWRMON_GET_SAMPLE_NOSUPP:
- return -ENO
SYS
;
+ return -ENO
MSG
;
default:
return -EIO;
}