Skip to contentSkip to conversation

dmaengine: imx-sdma: Remove unused imx_dma_is_ipu() inline function

PATCH Applied Vladimir Zapolskiy 3 participants 3 messages Jul 26 – Sep 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: imx-sdma: Remove unused imx_dma_is_ipu() inline function

The last user of the inline helper function imx_dma_is_ipu() was removed by commit bfac19e239a7 ("fbdev: mx3fb: Remove the driver") a few years ago, and this helper also can be safely removed.

---
 include/linux/dma/imx-dma.h | 5 -----
 1 file changed, 5 deletions(-)
include/linux/dma/imx-dma.h +0 -5
index 76a8de9ae151..16e491f63883 100644
@@ -57,11 +57,6 @@ struct imx_dma_data {
 	int priority;
 };
 
-static inline int imx_dma_is_ipu(struct dma_chan *chan)
-{
-	return !strcmp(dev_name(chan->device->dev), "ipu-core");
-}
-
 static inline int imx_dma_is_general_purpose(struct dma_chan *chan)
 {
 	return !strcmp(chan->device->dev->driver->name, "imx-sdma") ||
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Vladimir Zapolskiy

The last user of the inline helper function imx_dma_is_ipu() was removed by commit bfac19e239a7 ("fbdev: mx3fb: Remove the driver") a few years ago, and this helper also can be safely removed.

---

Quoted 22 lines
 include/linux/dma/imx-dma.h | 5 -----
 1 file changed, 5 deletions(-)
include/linux/dma/imx-dma.h +0 -6
index 76a8de9ae151..16e491f63883 100644
@@ -57,11 +57,6 @@ struct imx_dma_data {
 	int priority;
 };
 
-static inline int imx_dma_is_ipu(struct dma_chan *chan)
-{
-	return !strcmp(dev_name(chan->device->dev), "ipu-core");
-}
-
 static inline int imx_dma_is_general_purpose(struct dma_chan *chan)
 {
 	return !strcmp(chan->device->dev->driver->name, "imx-sdma") ||
--

2.51.0

maintainer Applied
#2 lore raw
In reply to Vladimir Zapolskiy
Quoted 5 lines · Vladimir Zapolskiy

The last user of the inline helper function imx_dma_is_ipu() was removed by commit bfac19e239a7 ("fbdev: mx3fb: Remove the driver") a few years ago, and this helper also can be safely removed.

Applied, thanks!

[1/1] dmaengine: imx-sdma: Remove unused imx_dma_is_ipu() inline function

      commit: be9bb4b4a3c4611ecfbe3d785894a09d331c6f25

Best regards,

Signature · 1 line
~Vinod