From patchwork Sun Sep 6 23:04:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rikard Falkeborn X-Patchwork-Id: 256831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F5DFC433E2 for ; Sun, 6 Sep 2020 23:10:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C758206B5 for ; Sun, 6 Sep 2020 23:10:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cJAmzQ39" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbgIFXKH (ORCPT ); Sun, 6 Sep 2020 19:10:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgIFXKD (ORCPT ); Sun, 6 Sep 2020 19:10:03 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB233C061573; Sun, 6 Sep 2020 16:10:02 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id y4so13930402ljk.8; Sun, 06 Sep 2020 16:10:02 -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:mime-version :content-transfer-encoding; bh=y/VuS+WEWq6WlqEUQXf1nqdiTpeCGfHiQU7o7A2icY4=; b=cJAmzQ39wDBgbxuZxueEjgV8QVTHcMeXnmx3OudE85UX9W3ry0V5R672kQwFgDXJ5W PR3q6pq4t5ZebwjcS9EuE/7+XHypAbNjgNUmJU24/cg9mrxOrWWKLZjU725L38O8OwTp u9drca/TuRDQZq+Xk+ZyN71XBQ8pyRCY45jadCrTYfexOa8JMKvK7GRhm8Qc7eXUkn26 i77GUdW53jk+Oc5UqwApkaarAH9Hdv4SU9tNAONDSzaT+/FeBr5KW+OFI2UEe+YzWRUq 3LhIn+MK6NScuuT2fcsO6HUhbdaUOTh1z4006pyu/HiKmGQd/uh4VlLDfToITyObI1Am uWJQ== 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=y/VuS+WEWq6WlqEUQXf1nqdiTpeCGfHiQU7o7A2icY4=; b=LHoIZy7lBoB49oskmV8m5emtfHXLlZJ+aDrP/jgDm/C/Zbz/cWoves3J1Sq0bkkFdz h1KeB8nHVwpokgIifl/g4AlRKxBWaY37nMJ08KVBUbbSGqu/ZbrXwGBo2iyRNLUzbMnT kayGdAz1xzxAHdM1AJ9reyGhZDKV4IAkc6LzcCp9mQ2QxFVxFz+SxWKCSGag022geMx8 BJK7Y5g5f7ZCeAukiROO0WDtG6j8IWLQDn8XFuyI/5Sf+OhYigYTVq5OvMZ6axQlhyvT gIxyrReuoyPXHvyy1ddVnpxKkjzjOnESRbqk9j4LLdabGsYiyHXNnbSORnxDuSoKZZCI vIUQ== X-Gm-Message-State: AOAM530bNQ3afWFKVCmqtyQmCBwnXTD9offsxlsq1dxQycqQT1Q7efeU e+SaSU6GrTZnKcwlxYWdmd8= X-Google-Smtp-Source: ABdhPJwNyce+VA5wGrCXOf+PqHoSye1C4DUgMCkd14tq6Y7v739twOpNPpuL74h/6NdwijCcQIePMw== X-Received: by 2002:a05:651c:1193:: with SMTP id w19mr8453804ljo.89.1599433801002; Sun, 06 Sep 2020 16:10:01 -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.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Sep 2020 16:10:00 -0700 (PDT) From: Rikard Falkeborn To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , "Rafael J. Wysocki" , Viresh Kumar , Rikard Falkeborn Subject: [PATCH 0/3] arm_scmi: Constify ops pointers in struct scmi_handle Date: Mon, 7 Sep 2020 01:04:49 +0200 Message-Id: <20200906230452.33410-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org A small patch series aiming to constify static scmi_*_ops structs in drivers/firmware/arm_scmi. Since these are not modified, constify them to allow the compiler to put them in read-only memory. Rikard Falkeborn (3): cpufreq: arm_scmi: Constify scmi_perf_ops pointers firmware: arm_scmi: Constify ops pointers in scmi_handle firmware: arm_scmi: Constify static scmi-ops drivers/cpufreq/scmi-cpufreq.c | 6 +++--- drivers/firmware/arm_scmi/clock.c | 2 +- drivers/firmware/arm_scmi/common.h | 2 +- drivers/firmware/arm_scmi/mailbox.c | 2 +- drivers/firmware/arm_scmi/notify.c | 2 +- drivers/firmware/arm_scmi/perf.c | 2 +- drivers/firmware/arm_scmi/power.c | 2 +- drivers/firmware/arm_scmi/reset.c | 2 +- drivers/firmware/arm_scmi/sensors.c | 2 +- drivers/firmware/arm_scmi/smc.c | 2 +- include/linux/scmi_protocol.h | 12 ++++++------ 11 files changed, 18 insertions(+), 18 deletions(-)