common/cnxk: align function naming
authorJakub Palider <jpalider@marvell.com>
Mon, 26 Jul 2021 13:58:14 +0000 (08:58 -0500)
committerJerin Jacob <jerinj@marvell.com>
Tue, 28 Sep 2021 10:09:14 +0000 (12:09 +0200)
There is an inconsistency in naming interrupt control
functions. This patch aligns names accordingly.

Signed-off-by: Jakub Palider <jpalider@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_bphy_irq.c
drivers/common/cnxk/roc_bphy_irq.h
drivers/common/cnxk/version.map
drivers/raw/cnxk_bphy/cnxk_bphy_irq.c

index be3c405..53eb89c 100644 (file)
@@ -319,7 +319,7 @@ roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip, int irq_num)
 }
 
 int
-roc_bphy_handler_clear(struct roc_bphy_irq_chip *chip, int irq_num)
+roc_bphy_intr_clear(struct roc_bphy_irq_chip *chip, int irq_num)
 {
        roc_cpuset_t orig_cpuset, intr_cpuset;
        const struct plt_memzone *mz;
index 0d1335b..185b635 100644 (file)
@@ -35,8 +35,7 @@ __roc_api void roc_bphy_intr_fini(struct roc_bphy_irq_chip *irq_chip);
 __roc_api void roc_bphy_intr_handler(unsigned int irq_num);
 __roc_api bool roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip,
                                       int irq_num);
-__roc_api int roc_bphy_handler_clear(struct roc_bphy_irq_chip *chip,
-                                    int irq_num);
+__roc_api int roc_bphy_intr_clear(struct roc_bphy_irq_chip *chip, int irq_num);
 __roc_api int roc_bphy_intr_register(struct roc_bphy_irq_chip *irq_chip,
                                     struct roc_bphy_intr *intr);
 
index b4dd95b..4acf80c 100644 (file)
@@ -37,8 +37,8 @@ INTERNAL {
        roc_bphy_cgx_stop_rxtx;
        roc_bphy_dev_fini;
        roc_bphy_dev_init;
-       roc_bphy_handler_clear;
        roc_bphy_intr_available;
+       roc_bphy_intr_clear;
        roc_bphy_intr_fini;
        roc_bphy_intr_handler;
        roc_bphy_intr_init;
index ac1d517..1fb3bf7 100644 (file)
@@ -85,7 +85,7 @@ cnxk_bphy_intr_unregister(uint16_t dev_id, int irq_num)
        struct bphy_device *bphy_dev = cnxk_bphy_get_bphy_dev_by_dev_id(dev_id);
 
        if (bphy_dev->irq_chip)
-               roc_bphy_handler_clear(bphy_dev->irq_chip, irq_num);
+               roc_bphy_intr_clear(bphy_dev->irq_chip, irq_num);
        else
                plt_err("Missing irq chip");
 }