From patchwork Mon Feb 1 05:25:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 374215 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp974350jah; Sun, 31 Jan 2021 21:38:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPZL6fWs+WzpZjQu8wuyBB08ZOOugMTGpeZgV+IMpSA8eRplTZKZfhxxcHyXd8JTHx/HSl X-Received: by 2002:a17:906:7253:: with SMTP id n19mr16013457ejk.543.1612157909917; Sun, 31 Jan 2021 21:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612157909; cv=none; d=google.com; s=arc-20160816; b=n8s/sMVI9Jb0e+aCH4te2F5pnPD4wIp7HYoR3s3NcxCbuQbeHxhZXGajOo2OGJ1nps RWLznyXKjkbQCc72OzeDlub+7ieiNl2GQz5NC2RtUwxTECf/m7LgtiLpM2NT2HCgMbuw x5eYLNuOVdACyNN8O30DwgIQ6ZGiD9YWknOIKXCToCuGiM0XLOUeK8a+Y0ElCK5DJIlF KTP9E+ZwuPvgU+gBMRRHnNmBp8yFt9plgcfbcvkNLc5kRPniI36AgeqBLPYl08tv2FyK kQPJUpPFXNhdxcUXWx8LUCRl+M45wSkym+O8RYT5+4KERb4RAcy8LHTD8G8ZLBV5TqQH nuUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=91o0myz+OYjbq2S4/NdrE8Isv+oJfr2OuqWuu9fDksw=; b=kLG0yFTM8W0/U8aYVab509+v+Rf4t0mSUdfgUOAFw/9ksevWV2+Hv4HOhkvZFI9Hn0 kClvFS1dcbMUIglNHzflfspcZWNTsz7EG8Y/I0CuR6HGBCnAVzOZQcGwmznoJD/DncRA KecR3l8c060+jHCEjrRFjZ2zce9i9S9LqF3zeK/EA+3A/pypy7o62hq2pekbY2D71DdM nmrt1XeIvjGm7W3uKg4A3EqPIY2stGgxnVOqXe2qPE39Xnl6GEX9MIZM2e3iJApa3IQV QRIzc7jT6boy8X2iPe6bHK4uGFVwj5eikQS7BMH0kLH0epZvyDgMLCzB3KEUEhWdFF1H tvbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N2xMkSOU; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi28si10318586edb.493.2021.01.31.21.38.29; Sun, 31 Jan 2021 21:38:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N2xMkSOU; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbhBAFh1 (ORCPT + 7 others); Mon, 1 Feb 2021 00:37:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231496AbhBAF0S (ORCPT ); Mon, 1 Feb 2021 00:26:18 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18CACC061794 for ; Sun, 31 Jan 2021 21:26:00 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id o16so11287055pgg.5 for ; Sun, 31 Jan 2021 21:26:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=91o0myz+OYjbq2S4/NdrE8Isv+oJfr2OuqWuu9fDksw=; b=N2xMkSOUSAc+oT9FQfwpQA7uPggfFo3pOTROUEvkANVwa4TGZKn35uTePU6O4h170e enucBKq6/cNO/7kddk8PCsI3jof1d3JzeY+lMUjhPchI16p8QKT7EzZZhs8ojH816dYU FAIGbPl5+fvB2CcaQsHM04t621XCTiHlq0qsw1gOO4cocgd/4+AafFrqXrMmvARmxlE+ agQCra2fX0Lzkzv9hR6L0P2lqjDM9RSVmk7d5+vI/FaiOeYRBrtImtwfTI+yavPlE4iy VVCRAaeBJMjaN3BdWYz5gQBu3awpTpY5DTikwmtKeDmScxkDuXxdcaZAHKnCTq+pa2h8 ws1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=91o0myz+OYjbq2S4/NdrE8Isv+oJfr2OuqWuu9fDksw=; b=sBznjE6DNU9aKxgaHUH2CDg4Iy7r/nwZbgr4vrGkQ9CZs6aVu6njgSFF1C1zJWYs4I UydYqbFb08ySz8P+OxrEu1ZJCjeJVXRwsx7sFLfBlSulJ8kJdp+l7VTeoi+HRSB4gwzu /r7ZvJ7JqL+pUX5/NN6mSLi1MWnDBrr8dELTc6DicXq0dMYGUM4I5NusCuoS+Z7/KOQq UsDal3akXW7y8pY16n6UJ+Vi6Pdf6veencHqBQgZJE3CLZhcSxDhGvN2Moj0sjzyquRT wav9MiDvarmpH6n+dVji/qWgCbLYNIZAFK6jJHhfXM1fNgWQk/G/TrrzoOuBCLv9E+gc RSyw== X-Gm-Message-State: AOAM5304RLkziB7UGfGv8YlBJEly66Y7cW1t7734sDK41O/YM35Vh8mM ZnnHqz/ED87+y58Bo4PfwbCCdpOLs6shVA== X-Received: by 2002:aa7:842b:0:b029:1bf:3390:5c82 with SMTP id q11-20020aa7842b0000b02901bf33905c82mr14315509pfn.36.1612157159550; Sun, 31 Jan 2021 21:25:59 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id y16sm16385433pgg.20.2021.01.31.21.25.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2021 21:25:58 -0800 (PST) From: Viresh Kumar To: Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] opp: Fix "foo * bar" should be "foo *bar" Date: Mon, 1 Feb 2021 10:55:53 +0530 Message-Id: <2f66b83d10ed4a1c4523b7263f8a29097622858c.1612157127.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix checkpatch warning: ERROR: "foo * bar" should be "foo *bar". Signed-off-by: Viresh Kumar --- include/linux/pm_opp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index 25e47ab937b9..c6c7d73eb015 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -148,7 +148,7 @@ struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name) void dev_pm_opp_put_prop_name(struct opp_table *opp_table); struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigned int count); void dev_pm_opp_put_regulators(struct opp_table *opp_table); -struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name); +struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char *name); void dev_pm_opp_put_clkname(struct opp_table *opp_table); struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)); void dev_pm_opp_unregister_set_opp_helper(struct opp_table *opp_table); @@ -347,7 +347,7 @@ static inline struct opp_table *dev_pm_opp_set_regulators(struct device *dev, co static inline void dev_pm_opp_put_regulators(struct opp_table *opp_table) {} -static inline struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name) +static inline struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char *name) { return ERR_PTR(-ENOTSUPP); } From patchwork Mon Feb 1 05:25:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 374214 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp973576jah; Sun, 31 Jan 2021 21:36:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyZXZJWuiHEUe70n+UEjSjNhi1jLBueHk8Becewfd6uoIryPJlSz8BxJhQL6/kibi1Sg2s X-Received: by 2002:a17:906:3401:: with SMTP id c1mr16538227ejb.156.1612157811797; Sun, 31 Jan 2021 21:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612157811; cv=none; d=google.com; s=arc-20160816; b=yu22zDi6X98hZYWerBsFZuHlpSqWSp+p0fBhHaPPhNHx0/zyWrzMsnQdgVtUHr2IN5 QVS2sMZIv1tSq5qsqcm8NP9Hkz4t8pj2ir/FbAzTZQkGoAQedCHMnI9JN9Tjyze5GHPZ tSvbCURhKWTmdoPTZq/1wF1MxpKC+b9Gk3ehVPKZPchqAAi71QSLtaSYk6M3XxCbZTRW 4rWXR9zChhMDctUjSd6jZ6BEQVDc9OEYS3gB+k24vGq0BMiJ5j/dU/aRInRMIJVJdRZW WtWcUclRUXNikvThmsyOat4PEk8E9AZDurt/wf0FOFHAUZ5wK5w8dv0saA3jNkahJJvW DqoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hyCbJ5C1U0jhyHzgth+W27DNhqxYiX9hLv7SxsUG93M=; b=fG9X/41K1tbfmFfmzcjeg7aPIs+z/oBzuqpFqrzvRx4dqgBIYc29lN6zAmdWdAhVCm IjMAbUg1huKswVXs6rOQ8bBgPj70nG8npCS9gwm5j0GBSNA3YQGZGzv/F9VgaT+E01nb 2RWW5NtgrEOBQO/rkU5rftHPJicV0E7/JRZDg+Lkf9wFb6M2inx2f3k6D3ssSswHpjfN PrNgJXqZbej/0pI9vG9SJRNygDU0IrYwSTnSjG6UZTP0i93B7Zz1FwAX3DPrZtWYZo4g X1fJPTdFB5TDlrbAOOwYRRJtzqJCQav25jceYE0t4oqTDQkiECLoOr7D/0KKvxPVgyZp bKow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FIU/K7ov"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si10358020edk.285.2021.01.31.21.36.51; Sun, 31 Jan 2021 21:36:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FIU/K7ov"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbhBAFft (ORCPT + 7 others); Mon, 1 Feb 2021 00:35:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhBAF0n (ORCPT ); Mon, 1 Feb 2021 00:26:43 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 504CBC061788 for ; Sun, 31 Jan 2021 21:26:03 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id b17so9311965plz.6 for ; Sun, 31 Jan 2021 21:26:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hyCbJ5C1U0jhyHzgth+W27DNhqxYiX9hLv7SxsUG93M=; b=FIU/K7ovjvq10voKnofpgZgU18RA3s5adxgBfci9bHGfKY9NkenLMGLG1+WvmSre0X et5AWA1YYxCudlNEdZBlB7Jipu5yFWb6Idz2IQW6vTIioG8yp5rvfrP9QEl2BMo9yg52 DcqBMD0p/rrbefE2pYXmC+ucsG96yIJ21iFNk8fGN+/azVdnGMrtE4pOJSllwvVDTt3/ NxyQMLJ3NlCGYwjV6wt2/5FRezT1vIEQMKcByepVnpUZNEXfUoUqVUcAXdzdZU0nknsh ocXvSVGsuomFDdOOEdkVJgEYUGsLFrUbOHSLg7TKdOD6B9l7Nx5dV6QbbxLIH0m2GJH3 n3tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hyCbJ5C1U0jhyHzgth+W27DNhqxYiX9hLv7SxsUG93M=; b=Nxh9QPjnP/NVNyiFFDRqOmO/IOE3WNuiSHtP3ZF168v/mRYFB5scngvKVXZ6UJ96CQ fg15GfQev3LsIlZUjDOU3mepVltQqO0dMpd5MaOmRqPSGpJFSc21jqGGHCKB0ahuDCRG Wjh3QmZqrjc9gauU5HHEGubUlzkc+6SxwF2TfEOvLd/yUijXwHPQ53QModTasutrVe6W iPcnRhPTvcdISis4xXAA85Y8mzq6wIf5hbnyqZpAzUcCI6KuKq3QoSoPBrOZs2yXh/cU GIv0nsn8XlCTcVCOmpRcVZ88OWy9GYF5a2ERfgRDxTJlPij1awBGNSQJkd8xFSImG1Ck 0/NQ== X-Gm-Message-State: AOAM532Wq3j6e+ZAaa5mF1uqh4v84cMl9qudXHpzB5YO1lDYZv5SUllE GvgxWNrL//aoPWqgAkPKpwxRfdbCIIeTJA== X-Received: by 2002:a17:90a:c003:: with SMTP id p3mr15597323pjt.176.1612157162786; Sun, 31 Jan 2021 21:26:02 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id g17sm16770198pgg.78.2021.01.31.21.26.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2021 21:26:02 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] opp: Replace ENOTSUPP with EOPNOTSUPP Date: Mon, 1 Feb 2021 10:55:54 +0530 Message-Id: <76b98d6560cea9cb0710a05632ebfeabd777d03a.1612157127.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: <2f66b83d10ed4a1c4523b7263f8a29097622858c.1612157127.git.viresh.kumar@linaro.org> References: <2f66b83d10ed4a1c4523b7263f8a29097622858c.1612157127.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Checkpatch gives following warning for new patches, and the new patches normally follow the existing standards for such stuff. Lets fix it properly. WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP. Signed-off-by: Viresh Kumar --- include/linux/pm_opp.h | 64 +++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 32 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index c6c7d73eb015..ab1d15ce559d 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -167,12 +167,12 @@ int dev_pm_opp_sync_regulators(struct device *dev); #else static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_put_opp_table(struct opp_table *opp_table) {} @@ -232,37 +232,37 @@ static inline unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev) static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, unsigned long freq, bool available) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev, unsigned int level) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev, unsigned int *level) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, unsigned long *freq) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil_by_volt(struct device *dev, unsigned long u_volt) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev, unsigned long *freq) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_put(struct dev_pm_opp *opp) {} @@ -270,7 +270,7 @@ static inline void dev_pm_opp_put(struct dev_pm_opp *opp) {} static inline int dev_pm_opp_add(struct device *dev, unsigned long freq, unsigned long u_volt) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline void dev_pm_opp_remove(struct device *dev, unsigned long freq) @@ -301,19 +301,19 @@ static inline int dev_pm_opp_disable(struct device *dev, unsigned long freq) static inline int dev_pm_opp_register_notifier(struct device *dev, struct notifier_block *nb) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_unregister_notifier(struct device *dev, struct notifier_block *nb) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, const u32 *versions, unsigned int count) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_put_supported_hw(struct opp_table *opp_table) {} @@ -321,7 +321,7 @@ static inline void dev_pm_opp_put_supported_hw(struct opp_table *opp_table) {} static inline struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_unregister_set_opp_helper(struct opp_table *opp_table) {} @@ -330,33 +330,33 @@ static inline struct opp_table * devm_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_put_prop_name(struct opp_table *opp_table) {} static inline struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigned int count) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_put_regulators(struct opp_table *opp_table) {} static inline struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char *name) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_put_clkname(struct opp_table *opp_table) {} static inline struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline void dev_pm_opp_detach_genpd(struct opp_table *opp_table) {} @@ -364,27 +364,27 @@ static inline void dev_pm_opp_detach_genpd(struct opp_table *opp_table) {} static inline struct opp_table *devm_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs) { - return ERR_PTR(-ENOTSUPP); + return ERR_PTR(-EOPNOTSUPP); } static inline int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_set_opp(struct device *dev, struct dev_pm_opp *opp) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, const struct cpumask *cpumask) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) @@ -402,7 +402,7 @@ static inline void dev_pm_opp_cpumask_remove_table(const struct cpumask *cpumask static inline int dev_pm_opp_sync_regulators(struct device *dev) { - return -ENOTSUPP; + return -EOPNOTSUPP; } #endif /* CONFIG_PM_OPP */ @@ -427,17 +427,17 @@ static inline void dev_pm_opp_of_unregister_em(struct device *dev) #else static inline int dev_pm_opp_of_add_table(struct device *dev) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_of_add_table_indexed(struct device *dev, int index) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_of_add_table_noclk(struct device *dev, int index) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline void dev_pm_opp_of_remove_table(struct device *dev) @@ -446,7 +446,7 @@ static inline void dev_pm_opp_of_remove_table(struct device *dev) static inline int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask) @@ -455,7 +455,7 @@ static inline void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpum static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev) @@ -471,7 +471,7 @@ static inline struct device_node *dev_pm_opp_get_of_node(struct dev_pm_opp *opp) static inline int dev_pm_opp_of_register_em(struct device *dev, struct cpumask *cpus) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline void dev_pm_opp_of_unregister_em(struct device *dev) @@ -480,12 +480,12 @@ static inline void dev_pm_opp_of_unregister_em(struct device *dev) static inline int of_get_required_opp_performance_state(struct device_node *np, int index) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int dev_pm_opp_of_find_icc_paths(struct device *dev, struct opp_table *opp_table) { - return -ENOTSUPP; + return -EOPNOTSUPP; } #endif