PM: domains: replace -ENOTSUPP with -EOPNOTSUPP
authorLina Iyer <ilina@codeaurora.org>
Thu, 19 Nov 2020 16:43:25 +0000 (09:43 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Nov 2020 17:41:28 +0000 (18:41 +0100)
commita94ef811f7c3748736b85db0406da8e4ea391ac6
treea3bf27487959e1c498b3cb85d4d47c1f0926bcf3
parent418baf2c28f3473039f2f7377760bd8f6897ae18
PM: domains: replace -ENOTSUPP with -EOPNOTSUPP

While submitting a patch to add next_wakeup, checkpatch reported this -

WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP
+       return -ENOTSUPP;

Address the above warning in other functions in pm_domain.h.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm_domain.h