diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-04-21 11:43:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-04-21 20:19:33 +0900 |
commit | 5b35ef95ef9b71406db3fe860b8ce8206b6576c7 (patch) | |
tree | 63fe3dc12e4127e285c0e2be256d37e9862d7005 /drivers/staging/greybus/svc.c | |
parent | 89f2df438b20f2176fcc8fc92201a708f0d3659b (diff) |
greybus: svc: fix pwrmon return value
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>
Diffstat (limited to 'drivers/staging/greybus/svc.c')
-rw-r--r-- | drivers/staging/greybus/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index ff89da6172c2..1cf608987c3b 100644 --- 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 -ENOSYS; + return -ENOMSG; default: return -EIO; } |