]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: SDCA: Rename sdca_irq_allocate() to include devm
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 21 Jul 2026 14:36:30 +0000 (15:36 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jul 2026 17:47:03 +0000 (18:47 +0100)
Make it more clear sdca_irq_allocate() uses devm allocations by adding
it into the name.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260721143636.361814-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sdca_interrupts.h
sound/soc/sdca/sdca_class.c
sound/soc/sdca/sdca_interrupts.c

index a515cc3df09717bad8100610bc4747dbb50d3f58..28fd44eb933433d9ea86ba9b8a99b1283fa51cf6 100644 (file)
@@ -86,8 +86,9 @@ int sdca_irq_populate(struct sdca_function_data *function,
 void sdca_irq_cleanup(struct device *dev,
                      struct sdca_function_data *function,
                      struct sdca_interrupt_info *info);
-struct sdca_interrupt_info *sdca_irq_allocate(struct device *dev,
-                                             struct regmap *regmap, int irq);
+
+struct sdca_interrupt_info *devm_sdca_irq_allocate(struct device *dev,
+                                                  struct regmap *regmap, int irq);
 
 void sdca_irq_enable_early(struct sdca_function_data *function,
                           struct sdca_interrupt_info *info);
index 8d7b007a068fd6dc8dbc6c6502ee6cd97c0108d2..d7444f442c71c61ec5769d7468f6e4ab39309fb8 100644 (file)
@@ -111,8 +111,8 @@ static void class_boot_work(struct work_struct *work)
 
        regcache_cache_only(drv->dev_regmap, false);
 
-       drv->irq_info = sdca_irq_allocate(drv->dev, drv->dev_regmap,
-                                         drv->sdw->irq);
+       drv->irq_info = devm_sdca_irq_allocate(drv->dev, drv->dev_regmap,
+                                              drv->sdw->irq);
        if (IS_ERR(drv->irq_info))
                goto err;
 
index 4539a52a8e32ba4a83929e9790ebbf7b246a4d4a..1e4efc0609d93f128206587a7e95476202238889 100644 (file)
@@ -592,7 +592,7 @@ void sdca_irq_cleanup(struct device *dev,
 EXPORT_SYMBOL_NS_GPL(sdca_irq_cleanup, "SND_SOC_SDCA");
 
 /**
- * sdca_irq_allocate - allocate an SDCA interrupt structure for a device
+ * devm_sdca_irq_allocate - allocate an SDCA interrupt structure for a device
  * @sdev: Device pointer against which things should be allocated.
  * @regmap: regmap to be used for accessing the SDCA IRQ registers.
  * @irq: The interrupt number.
@@ -604,8 +604,8 @@ EXPORT_SYMBOL_NS_GPL(sdca_irq_cleanup, "SND_SOC_SDCA");
  * Return: A pointer to the allocated sdca_interrupt_info struct, or an
  * error code.
  */
-struct sdca_interrupt_info *sdca_irq_allocate(struct device *sdev,
-                                             struct regmap *regmap, int irq)
+struct sdca_interrupt_info *devm_sdca_irq_allocate(struct device *sdev,
+                                                  struct regmap *regmap, int irq)
 {
        struct sdca_interrupt_info *info;
        int ret, i;
@@ -634,7 +634,7 @@ struct sdca_interrupt_info *sdca_irq_allocate(struct device *sdev,
 
        return info;
 }
-EXPORT_SYMBOL_NS_GPL(sdca_irq_allocate, "SND_SOC_SDCA");
+EXPORT_SYMBOL_NS_GPL(devm_sdca_irq_allocate, "SND_SOC_SDCA");
 
 static void irq_enable_flags(struct sdca_function_data *function,
                             struct sdca_interrupt_info *info, bool early)