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>
This commit is contained in:
Johan Hovold 2016-05-19 16:20:14 +02:00 committed by Greg Kroah-Hartman
parent 7ba535ec69
commit 0bba4fb53a
1 changed files with 1 additions and 1 deletions
drivers/staging/greybus

View File

@ -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: case GB_SVC_PWRMON_GET_SAMPLE_INVAL:
return -EINVAL; return -EINVAL;
case GB_SVC_PWRMON_GET_SAMPLE_NOSUPP: case GB_SVC_PWRMON_GET_SAMPLE_NOSUPP:
return -ENOSYS; return -ENOMSG;
default: default:
return -EIO; return -EIO;
} }