]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
power: sequencing: pcie-m2: Fix inconsistent function prefixes
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Tue, 19 May 2026 08:55:56 +0000 (14:25 +0530)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 8 Jun 2026 07:47:55 +0000 (09:47 +0200)
All functions in this driver follow 'pwrseq_pcie_m2' prefix except a few.
Fix them to avoid inconsistency.

Tested-by: Wei Deng <wei.deng@oss.qualcomm.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260519-pwrseq-m2-bt-v3-1-b39dc2ae3966@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/power/sequencing/pwrseq-pcie-m2.c

index ef69ae268059442851db630e752f7323e6686b15..b2ed336fd5ad915e8114c608c6f7a2dbf4029f5b 100644 (file)
@@ -177,7 +177,7 @@ static int pwrseq_pcie_m2_match(struct pwrseq_device *pwrseq,
        return PWRSEQ_NO_MATCH;
 }
 
-static int pwrseq_m2_pcie_create_bt_node(struct pwrseq_pcie_m2_ctx *ctx,
+static int pwrseq_pcie_m2_create_bt_node(struct pwrseq_pcie_m2_ctx *ctx,
                                        struct device_node *parent)
 {
        struct device *dev = ctx->dev;
@@ -254,7 +254,7 @@ static int pwrseq_pcie_m2_create_serdev(struct pwrseq_pcie_m2_ctx *ctx)
                goto err_put_ctrl;
        }
 
-       ret = pwrseq_m2_pcie_create_bt_node(ctx, serdev_parent);
+       ret = pwrseq_pcie_m2_create_bt_node(ctx, serdev_parent);
        if (ret)
                goto err_free_serdev;
 
@@ -299,7 +299,7 @@ static void pwrseq_pcie_m2_remove_serdev(struct pwrseq_pcie_m2_ctx *ctx)
        }
 }
 
-static int pwrseq_m2_pcie_notify(struct notifier_block *nb, unsigned long action,
+static int pwrseq_pcie_m2_notify(struct notifier_block *nb, unsigned long action,
                              void *data)
 {
        struct pwrseq_pcie_m2_ctx *ctx = container_of(nb, struct pwrseq_pcie_m2_ctx, nb);
@@ -364,7 +364,7 @@ static int pwrseq_pcie_m2_register_notifier(struct pwrseq_pcie_m2_ctx *ctx, stru
        if (pwrseq_pcie_m2_check_remote_node(dev, 3, 0, "serial")) {
                if (pwrseq_pcie_m2_check_remote_node(dev, 0, 0, "pcie")) {
                        ctx->dev = dev;
-                       ctx->nb.notifier_call = pwrseq_m2_pcie_notify;
+                       ctx->nb.notifier_call = pwrseq_pcie_m2_notify;
                        ret = bus_register_notifier(&pci_bus_type, &ctx->nb);
                        if (ret)
                                return dev_err_probe(dev, ret,