From patchwork Sun Sep 6 23:04:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rikard Falkeborn X-Patchwork-Id: 11759771 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 63ABF14F9 for ; Sun, 6 Sep 2020 23:10:20 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 01686214F1 for ; Sun, 6 Sep 2020 23:10:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DKX1Oeg+"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A5/7U7PG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01686214F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hvUs6TFyG9n4bZjA6gg5J1PiIcCpXDRBYY74oO+Xu5U=; b=DKX1Oeg+BGoGR/KRpLKc3uR++ g0JtaD4YBy8rmzOXswZhGtOfESNZ3NJT8JCyzmn9JvpfGAVpN3zbJYhwc13ZtetF5hdg4M7ASB8GW 1OPE2ie/yLRHQ/vRfaiL6Qsv0Aod23LaaUdBpeZ/aPVImO5IWg8weCVIt0nKzy4uj+p6WOOBIWSZX vP16hRFfvFHgL7TMIy29OshZrzrp0a6WrTZWZt8Rdve49xgSFjDw/b3of2015m8jadmictXaaRbaV 6KbUHsLjX03KQKM0vImM93njTBlUIBpsFQVjhO0LKet06PvYdGU6y3XpZDu9nRD1FCn/pf8CeHXtN DXUhgo2Ww==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kF3nW-0002qk-3P; Sun, 06 Sep 2020 23:10:10 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kF3nR-0002oz-4f for linux-arm-kernel@lists.infradead.org; Sun, 06 Sep 2020 23:10:05 +0000 Received: by mail-lj1-x244.google.com with SMTP id c2so13895096ljj.12 for ; Sun, 06 Sep 2020 16:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NUGRQoQOfkm+Q1r5IdMfVQrE6dq9XkDPp8w5VNp/XW4=; b=A5/7U7PGysC7Lat9H1X1WrQsULCsjbslDkwUVOG/iH1O9q2QWz7FE1iJUxhr58Hj/4 V20PbyZt46CuVFG041pKscToJe7Lh0LiDjHeXOLOV/b9WDgUux8u2PDxnJzlLnxpamZ/ 0BZf34CJxQOg9XSJ6oJEKfNmEkzFJe8hWPCZoJz6Wcdd1btLhc5lPXSntl/jUg7nd/Gt wsB5UHchdcYkOtOj9KNPHwNFTwPq2i+f0ju5BKC1EsUMg42BJTNHkPONB971GDL8nck5 qF2WqdtKfm5Dur+zbkitJf39PTujSzjC1DuHJsmJopAYg8rWuSXvX+oIL0yYYYP7E3vW UPKQ== 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=NUGRQoQOfkm+Q1r5IdMfVQrE6dq9XkDPp8w5VNp/XW4=; b=ZNHMgflhPGTl585Wq86ovp2Xvy9E5ySO37kgKNTTiBV1Lj8S+oBJgnYHkd4h36a4kb mnutlLw2JwfibJXXrupJp9VSduVNJ82Snd9xxC+McYJpqedUXCB5RjvmMwIk+tk4DIZR fasR2FVJ70+aclNtLi3h3tLPcxdlna50Ounq3E6/8n5jP1jqTDzfIDNCw7XaS1muVybh 6dZ09VZpIzt44j/5qjNIFlIY9LKs6Mi84sV8Gqq+/5plqVh8eezhQk3v7DfSKi5K8HSs D9ivGwCHKis47oascF8x3RqmjvhbBSu13BU9E9n+s5VRFsMqsJGksG5SHsO7L4gf1XkL 9MQw== X-Gm-Message-State: AOAM5334ArmuUIz7KGH7C/Xl/7UNK5xcCX2a6wSBv4wIiMvA9/ZOXwS/ pNYZH3R6ytm3ARco8cXR+FVUJ0dleMr1Ag== X-Google-Smtp-Source: ABdhPJztcsF1D/9+BjP+M7FHssI19IN5D3FuSHqwt6KE+HfThPz7XhqQAk2eIXbCTe8Ozp1yUuG1PA== X-Received: by 2002:a2e:8798:: with SMTP id n24mr6018798lji.373.1599433803479; Sun, 06 Sep 2020 16:10:03 -0700 (PDT) Received: from localhost.localdomain (h-82-196-111-59.NA.cust.bahnhof.se. [82.196.111.59]) by smtp.gmail.com with ESMTPSA id r17sm1325984ljp.117.2020.09.06.16.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Sep 2020 16:10:02 -0700 (PDT) From: Rikard Falkeborn To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] firmware: arm_scmi: Constify ops pointers in scmi_handle Date: Mon, 7 Sep 2020 01:04:51 +0200 Message-Id: <20200906230452.33410-3-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200906230452.33410-1-rikard.falkeborn@gmail.com> References: <20200906230452.33410-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200906_191005_210959_F996094D X-CRM114-Status: GOOD ( 12.90 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:244 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rikard.falkeborn[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Viresh Kumar , "Rafael J. Wysocki" , Rikard Falkeborn , Sudeep Holla Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org These are never modified, so make them const to allow drivers to make them const. Signed-off-by: Rikard Falkeborn --- include/linux/scmi_protocol.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index 7e5dd7d1e221..05570afc7f74 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -279,12 +279,12 @@ struct scmi_notify_ops { struct scmi_handle { struct device *dev; struct scmi_revision_info *version; - struct scmi_perf_ops *perf_ops; - struct scmi_clk_ops *clk_ops; - struct scmi_power_ops *power_ops; - struct scmi_sensor_ops *sensor_ops; - struct scmi_reset_ops *reset_ops; - struct scmi_notify_ops *notify_ops; + const struct scmi_perf_ops *perf_ops; + const struct scmi_clk_ops *clk_ops; + const struct scmi_power_ops *power_ops; + const struct scmi_sensor_ops *sensor_ops; + const struct scmi_reset_ops *reset_ops; + const struct scmi_notify_ops *notify_ops; /* for protocol internal use */ void *perf_priv; void *clk_priv;