diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-05-19 16:20:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-20 16:36:43 -0700 |
commit | 0bba4fb53adff8ee1538a654bfb5ac79298cc5dc (patch) | |
tree | ea428cc7c9923ad14c22904d3c4fabab8b64dfa0 /drivers/staging/greybus/svc.c | |
parent | 7ba535ec69ff670976e69adeec24dac2b65560ee (diff) |
greybus: svc: fix another 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 80e8cf04ade9..3e22ed8b691b 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -202,7 +202,7 @@ int gb_svc_pwrmon_intf_sample_get(struct gb_svc *svc, u8 intf_id, case GB_SVC_PWRMON_GET_SAMPLE_INVAL: return -EINVAL; case GB_SVC_PWRMON_GET_SAMPLE_NOSUPP: - return -ENOSYS; + return -ENOMSG; default: return -EIO; } |