Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3443754pxb; Sun, 26 Sep 2021 15:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1N/89/6PYcJhGeL47F33TfioNNf5N89Lf86UUhhVsF4Cezf1Q1A17wCaOhsqDJdjdN9dH X-Received: by 2002:a65:47cd:: with SMTP id f13mr13901340pgs.439.1632696216865; Sun, 26 Sep 2021 15:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632696216; cv=none; d=google.com; s=arc-20160816; b=beJkDQKYo63Qm5NxKlZPde64WubLA+xep46YWaXc0QvlB7GXIxS9CVZ4i5dUmEgml2 oCazOg+kxYIpSt/REQkaOs3/KhNFDDe2l81wM9QjD1bNZ7bTWRFt74DxOUTK0aqZZWdv Rw1ei4JKiE0p9TYeNJ48//OY+a0ILkyiJKdjDIEfRwWCyqn1SzOsiiJAidBm5i+y4i4J XSxqSTaFEiYsPh9iiG96SfXtMXDyJqZvP4vJ0L2+HLDLARcXKGqZgsCOnCDDMNiCqfCm 7VSYDX08CsZ7Zv9nLrmHMPdKWcluYWK1iNrUwPwYTDfhUNj6/JxrEWPlk0BpI1UeM3+d D7vw== 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=wufLMjvcV2REchuzKnLPe9Ps3w6SDfXDXOXmKrrN/u8=; b=PUvQ6Ql8X5NHZxOICrITe873NUcogikkcoxOP8U83XmizorDgvq8c5WN5EIQ6qkTnt KXFaCKtk45FjjpG02OQo+OqOTxfrgZaWgkqEx2YKPSMDlAIk0ZDayWLAI4VBtuKgHRz+ /+ydMbjFQiuoi0mymxzKDKWFNL0uonCTYARZLDr7vensDUbmPzRFiaWvy9G6j1CjBjnk mD8E1pdTR/l3aqZ/JA8d+NVBbCTN1nLx4CgXBXFfxtRBLMeZWrWxq2mTyxQ5ekv1fi3Y /D5+S8kxnovj2VVnQBttGrDkCRYDmUWBPhhdhR0jepHRP2oOzHtVuOfx8JaO4UVEmPIl dEWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UxSGFqvq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si17999622pgv.464.2021.09.26.15.43.24; Sun, 26 Sep 2021 15:43:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20210112 header.b=UxSGFqvq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbhIZWoK (ORCPT + 99 others); Sun, 26 Sep 2021 18:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbhIZWoF (ORCPT ); Sun, 26 Sep 2021 18:44:05 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382FFC061575; Sun, 26 Sep 2021 15:42:28 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id b15so67581946lfe.7; Sun, 26 Sep 2021 15:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wufLMjvcV2REchuzKnLPe9Ps3w6SDfXDXOXmKrrN/u8=; b=UxSGFqvq2GARPSvJlQQLgb3dHtJ/1IChvC+P1eyK8nTRw84gJzHu5Gd8e6yTQ7zdvm kepVVcPzpT8otqKxk9Z8Ibv5pT5plZq3ms1DsgLjq4QjnA6sh6NciqSjwqVXj6p40sYz dX/CxeB4yeVTfjCKIqqCSEiXO8qruBoJn45H9HPlzlZzretgmikspfSu8gnINDUfgegG EHnzoR6RPJld864PyqsQAL7bWJSrlB6zsRQkaaZUWlt5cAoP6F3PkIaWsBnOk7Etvm5C X5HOMLaYFnjCDFby3kX5gYrL4s1veo9pfZGmywJtFaGFQicAT5+NUp7KdJ/ggP5XlqjO bV9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wufLMjvcV2REchuzKnLPe9Ps3w6SDfXDXOXmKrrN/u8=; b=FArIzctgZ8zVOEkS7F+qPQ/Z3uZxNZKiGJ0xPE8IpkjT7M0X7ugf22EzO38lu7XXst XPRxhYW2H/Zmsze25QzV9Dym5GGl9Lju+fxzS3Q76FGxCKmrBOSuMltplJUukwWKZGfy /xSLLDFqpddzua0A78fFndA/2jmF885zl1gf+09eE0fkTVOIvvzlTCRLhzy265YgTWQp D6JfXkqC+jTyomD2Z5z+PZDazCeQ5F7WVFP5EUwV0b8vkGLSnff///9SMX9SoOALpLz2 qdWiC2vhgTkYzo2hTkXX4mhKfxGvJsJAOiYKT7zecF9tjg51pbAuEa/YBeOhib25NgE8 oMTg== X-Gm-Message-State: AOAM530FsvB0ggd64Rr44zu/OA5QM/KEydMeXmeLyXa/SjY7fFxkD+dH 4nf+4pgvtyp46aTpbRKZ7wY= X-Received: by 2002:a05:651c:203:: with SMTP id y3mr8487429ljn.512.1632696146622; Sun, 26 Sep 2021 15:42:26 -0700 (PDT) Received: from localhost.localdomain (46-138-80-108.dynamic.spd-mgts.ru. [46.138.80.108]) by smtp.gmail.com with ESMTPSA id m10sm1408899lfr.272.2021.09.26.15.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 15:42:26 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Ulf Hansson , Viresh Kumar , Stephen Boyd , Peter De Schrijver , Mikko Perttunen , Peter Chen , Lee Jones , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Nishanth Menon , Adrian Hunter , Michael Turquette Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-staging@lists.linux.dev, linux-pwm@vger.kernel.org, linux-mmc@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Mark Brown , Vignesh Raghavendra , Richard Weinberger , Miquel Raynal , Lucas Stach , Stefan Agner , Mauro Carvalho Chehab , David Heidelberg Subject: [PATCH v13 01/35] opp: Change type of dev_pm_opp_attach_genpd(names) argument Date: Mon, 27 Sep 2021 01:40:24 +0300 Message-Id: <20210926224058.1252-2-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210926224058.1252-1-digetx@gmail.com> References: <20210926224058.1252-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Elements of the 'names' array are not changed by the code, constify them for consistency. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 6 +++--- include/linux/pm_opp.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 04b4691a8aac..3057beabd370 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -2348,12 +2348,12 @@ static void _opp_detach_genpd(struct opp_table *opp_table) * "required-opps" are added in DT. */ struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, - const char **names, struct device ***virt_devs) + const char * const *names, struct device ***virt_devs) { struct opp_table *opp_table; struct device *virt_dev; int index = 0, ret = -EINVAL; - const char **name = names; + const char * const *name = names; opp_table = _add_opp_table(dev, false); if (IS_ERR(opp_table)) @@ -2457,7 +2457,7 @@ static void devm_pm_opp_detach_genpd(void *data) * * Return: 0 on success and errorno otherwise. */ -int devm_pm_opp_attach_genpd(struct device *dev, const char **names, +int devm_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct device ***virt_devs) { struct opp_table *opp_table; diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index a95d6fdd20b6..879c138c7b8e 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -156,9 +156,9 @@ int devm_pm_opp_set_clkname(struct device *dev, const char *name); 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); int devm_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)); -struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs); +struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct device ***virt_devs); void dev_pm_opp_detach_genpd(struct opp_table *opp_table); -int devm_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs); +int devm_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct device ***virt_devs); struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, struct opp_table *dst_table, struct dev_pm_opp *src_opp); int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate); int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq); @@ -376,7 +376,7 @@ static inline int devm_pm_opp_set_clkname(struct device *dev, const char *name) return -EOPNOTSUPP; } -static inline struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs) +static inline struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct device ***virt_devs) { return ERR_PTR(-EOPNOTSUPP); } @@ -384,7 +384,7 @@ static inline struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, cons static inline void dev_pm_opp_detach_genpd(struct opp_table *opp_table) {} static inline int devm_pm_opp_attach_genpd(struct device *dev, - const char **names, + const char * const *names, struct device ***virt_devs) { return -EOPNOTSUPP; -- 2.32.0