summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-08 14:21:37 +0200
committerCasey Connolly <[email protected]>2026-05-18 11:04:47 +0200
commit5a995c2fe0b17dbff46fd7b3ed26a8338fd55404 (patch)
treea68a1667184288476bf0c307f11960c485fc05c0
parentbc2811928806bf74d1cd2e24da34d9d6d169e1fd (diff)
pci: pcie_dw_qcom: Staticize and constify driver ops
Set the ops structure as static const. The structure is not accessible from outside of this driver and is not going to be modified at runtime. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Casey Connolly <[email protected]>
-rw-r--r--drivers/pci/pcie_dw_qcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie_dw_qcom.c b/drivers/pci/pcie_dw_qcom.c
index 10c45aaba20..ce6b4d97d1d 100644
--- a/drivers/pci/pcie_dw_qcom.c
+++ b/drivers/pci/pcie_dw_qcom.c
@@ -22,7 +22,7 @@
struct qcom_pcie;
-struct qcom_pcie_ops {
+static const struct qcom_pcie_ops {
int (*config_sid)(struct qcom_pcie *priv);
};