Commit 0bba4fb5 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: svc: fix another pwrmon return value

Errno -ENOSYS is reserved for missing syscalls, replace it with -ENOMSG.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 7ba535ec
...@@ -202,7 +202,7 @@ int gb_svc_pwrmon_intf_sample_get(struct gb_svc *svc, u8 intf_id, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment