Re: [PATCH] PM / OPP: -ENOSYS is applicable only to syscalls

From: Rafael J. Wysocki
Date: Fri Apr 22 2016 - 08:39:42 EST


On Friday, April 22, 2016 08:46:51 AM Viresh Kumar wrote:
> Some of the routines have use -ENOSYS, which is supposed to be used only
> for syscalls. Replace that with -EINVAL.

-EINVAL specifically means "invalid argument".

What about using -ENXIO instead?