From mboxrd@z Thu Jan 1 00:00:00 1970 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.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,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 08D58C433E1 for ; Sun, 23 Aug 2020 22:02:40 +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 CC3342067C for ; Sun, 23 Aug 2020 22:02:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E1qPZH4K"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="u0ugw9dJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC3342067C 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+linux-arm-kernel=archiver.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: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:In-Reply-To:References:List-Owner; bh=y0klsiOys/jit8PTzg7pQsN2kP8685rG0fCxRWetzN0=; b=E1qPZH4Kp1odsvD7kiIyY+9kY2 nTOhio8vvy8BGbvq7KNFJW9+E1YXbitMblpdij0OjFAwK28PRbmQGt8CR00Dod4hWHxq88Zt9tua7 LpHzAODMClgs17UYVa7/X9sQjVw0vYmby5zrNMH8i+9Ad6v/x9oCabyK9o3BIrcabGo4iaU0/BVv4 Pb32w0qPRLgF3jLilGYF5eta972CWHNDSG/w8aim1hB1Dy7Hy5BW7XRQnCBzlDmtWCdL07yyWFc7i Yt57nrJFW3No1EBmfQ5Afy/jcBwceTeHqSeID8ExfZTB5qOrX6QGWy9eUVpnR92BKG9ve9GOaSD4O 8yceABMg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9y2p-00052D-Re; Sun, 23 Aug 2020 22:00:56 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9y2e-000500-Qf for linux-arm-kernel@lists.infradead.org; Sun, 23 Aug 2020 22:00:46 +0000 Received: by mail-lj1-x243.google.com with SMTP id v9so7480329ljk.6 for ; Sun, 23 Aug 2020 15:00:37 -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=3xBKmrcKhwETJmaV6FzpCkwP2aICHpN2nlbu6jRfR+c=; b=u0ugw9dJOnti/NZwaVPKZWmelIJE0Hn/4G0ddVGwvFY0e0pyM7DYCx14JAy5DOeaip LJzdI6ThbMRp9qvYfGU93C9TRUooVZ86ZMQDBnyMlSRtZz69H5Y3jKX4wzs+ycKVKxFl i8M20cd2axTGg9457ctO5Xj8yRQcnVwZRHDrwIdXltzkbCjZ3Yix2Tsp7gTq82P/xYKH g2qzgJnyzkv+H7Q90qQNVz2a8dhtLK21bKgX/sw+v4vyI2TUo60lwcq1JLMMoRJ2zQqj Y/G2TYnKAhm1Kq360SRC/308+qS6JdFMKPm7bB9T+/jmX6iAIvyt147PDOCnBBSwVFTo AK8A== 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=3xBKmrcKhwETJmaV6FzpCkwP2aICHpN2nlbu6jRfR+c=; b=FOHWPiBOLwwK7jUtY4Lr5FPcYh4uITSSWY9YLX5P7TUj3WVJFot0sJsKB5Tlrfdh5A +kX/rTfNnR4Bbz7aH5jL92TRrA8ryZyXkcX5rLMbLlsOIFQqoQX74h+0PHZRdG8vNKdH W8ED5onIARwIaphTtdsgi11zf4ggKeikl7K92TmItVuPafhOqzvxxrijYd9vlOQ7ABu4 oqsktSDVlOl8ZIkm8D3A/2tN2+rTk+hOrd3wBX7WByzCHcdjsqtP3WCZC/8qFn0GhQVw uKQcB2C+IVIUMUn2RcgP9Ys5IB0KKPuizsO6wmg532BhwO9a2M+WPAY1qBdLFb03cjNQ sXag== X-Gm-Message-State: AOAM530CufHVIsMAuxohHOM3BMYhdXxvOrvjLYplF7Pf3KNfYXgocqSJ pFF2WbFgI4I3Dki97rMJc9Y= X-Google-Smtp-Source: ABdhPJywVuuXApLID135Eooip1Ff4e2Dn6x/pXSjnAIANS+sLxR5eTt56tDbi3F7rrJ9YhU2gVnZ1Q== X-Received: by 2002:a2e:9516:: with SMTP id f22mr1205665ljh.24.1598220036106; Sun, 23 Aug 2020 15:00:36 -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 g11sm1825097lfc.46.2020.08.23.15.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 15:00:35 -0700 (PDT) From: Rikard Falkeborn To: Kishon Vijay Abraham I , Vinod Koul Subject: [PATCH 0/8] drivers: phy: Constify static phy_ops structs Date: Mon, 24 Aug 2020 00:00:17 +0200 Message-Id: <20200823220025.17588-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200823_180045_608554_329C860C X-CRM114-Status: GOOD ( 10.69 ) 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: linux-arm-kernel@lists.infradead.org, Peter Chen , linux-usb@vger.kernel.org, Alim Akhtar , Martin Blumenstingl , Fabio Estevam , Sascha Hauer , Binghui Wang , Yu Chen , linux-kernel@vger.kernel.org, Rikard Falkeborn , Bjorn Andersson , Andy Gross , NXP Linux Team , Pengutronix Kernel Team , linux-arm-msm@vger.kernel.org, Shawn Guo , Seungwon Jeon Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series constifies all static phy_ops structs in drivers/phy. Typically the only usage is to pass the address of it to devm_phy_create() which takes a const pointer. The lone exception is in drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c where the address of the structs is assigned to the data-field in of_device_id, which is a const void pointer. Making the structs const allows the compiler to put them in read-only memory. The patches are all independent of each other, and have been compile-tested only. Rikard Falkeborn (8): phy: cadence: salvo: Constify cdns_salvo_phy_ops phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops phy: hisilicon; Constify hi3660_phy_ops phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_phy_ops phy: lantiq: vrx200-pcie: Constify ltq_vrx200_pcie_phy_ops phy: ralink-usb: Constify ralink_usb_phy_ops phy: samsung-ufs: Constify samsung_ufs_phy_ops phy: qcom-ipq4019-usb: Constify static phy_ops structs drivers/phy/cadence/phy-cadence-salvo.c | 2 +- drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 2 +- drivers/phy/hisilicon/phy-hi3660-usb3.c | 2 +- drivers/phy/lantiq/phy-lantiq-rcu-usb2.c | 2 +- drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c | 2 +- drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 4 ++-- drivers/phy/ralink/phy-ralink-usb.c | 2 +- drivers/phy/samsung/phy-samsung-ufs.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) -- 2.28.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel