Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1747479pxa; Sun, 23 Aug 2020 15:01:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9/Lapy6K3+HdopxssSKH2OwDOWUXDhLJyKYU6wm3o5+k9H+Hu8cOxEPFUGnXdkvFfYJ4G X-Received: by 2002:a17:906:4704:: with SMTP id y4mr382182ejq.81.1598220102325; Sun, 23 Aug 2020 15:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598220102; cv=none; d=google.com; s=arc-20160816; b=HcReVrHNVzRhAGFLCthuKtoqiAl9KMojo9FDSOnriOt1WlCqxtds4+R+YpKzFGGPjM vha8BY3X55qzO5ci+xEkUZc8g0cnOrrh/LhdvYhquNRvc3ARwe4MzJLdOposPxB3xZNn uBP3yCv4whaD+m/eUXWs2BZjrRuOHFY28XbHHdtG2qtxMzQeXwXXOqOrTnGh7MES3XN6 RnHBLJn4vKuN86sbei7Sseur0AhM1R6LITk0+xmbrTL5GEIEglDcuMz1hh5C0N6tHnQM w+Mxly77/jwLNLR0GOo7hyBKV8AwgMDugQyO4Z0yjiB60CS4ZyNl+Ai35Djm38fVKFTX unyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3xBKmrcKhwETJmaV6FzpCkwP2aICHpN2nlbu6jRfR+c=; b=rh4BHVVtTFfje1/bGD8h3V+aQLhiUYvfplIq89JRtbPN3JU5NxFdWNtwQ1XtcgVvat Qmum5S+frlU7lSx3X9EZ2AUhFG4hKjuPtidzhW1fJqOT+X9vFjD/30RTM7lxuxoq286a 0eYGLZTiqKb9q3GFsa4uyR8Mfrsrrt0FiJu7TVmYz8U3FSseov1hdizrWi/ufy/kKpDf oTmtQNxRJo1iNAmD9cC7G8Gjrivoh6pYTDDmXxhT2ayexs9Wuzo0VWMiYmLs4OtdkXuy A7fGcD5fF7BzjI/MxC6GKeKGqB/qJLupRJH0Y9XW0Nk6DiW3jSXAs7rC5mAFenrGz3+Z A+4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u0ugw9dJ; 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 w4si5680475eji.586.2020.08.23.15.01.18; Sun, 23 Aug 2020 15:01:42 -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=20161025 header.b=u0ugw9dJ; 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 S1726497AbgHWWAj (ORCPT + 99 others); Sun, 23 Aug 2020 18:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbgHWWAi (ORCPT ); Sun, 23 Aug 2020 18:00:38 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A82DC061573; Sun, 23 Aug 2020 15:00:37 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id v12so7457360ljc.10; 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=O7RvxQgTCb6hThlOkRVTLqw5LTaoxYQ+GG64fh+nfw2TwUfhEg2NG2hEw61fKIcJq+ 3613h4cb9RVi7hSV+hXKzlEMjD7Oc6srCw3IJWyYvOU6wLOPuNGZcCXAdUU4ILmpcLMc CyCJTuFlfqW0ZwLGAJGM1mjcU7Y9Gs3Dyq1WlRS90QUZkA1CLFyznnjNh5ISzRipvm0y AoTbFnD0pGLLoaIb0mx2y1zFhB7Z3Fkaibg2kdvY9MNE0XWwqwOC8U+CnyEdM+Uw1mjb hVKfgMY6OdZfz64iU/lwsCRsOX+mV3b1+DWvQD+klTUlyLpsqPmYlmJ99VF0bxbSMU9N +2ZQ== X-Gm-Message-State: AOAM5308M4URhsinLXAtniFASc6kF30+lB7krHKN5LcCz9H2irvBRFed hbfJqxQYNX/DlyUK5jk6QNQ= 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 Cc: linux-kernel@vger.kernel.org, Rikard Falkeborn , Peter Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Yu Chen , Binghui Wang , Martin Blumenstingl , Alim Akhtar , Seungwon Jeon , Andy Gross , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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