ARM: OMAP2/3: sDMA: Correct omap_request_dma_chain(), v2
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Thu, 28 May 2009 20:23:52 +0000 (13:23 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 28 May 2009 20:23:52 +0000 (13:23 -0700)
Original OMAP DMA chaining design had chain_id as one of the callback
parameters. Patch 538528de0cb256f65716ab2e9613d9e920f97fe2 changed it
to use logical channel instead.

Correct the naming for callback to also use logical channel number
instead of the chain_id.

More details are on this email thread:

http://marc.info/?l=linux-omap&m=122961071931459&w=2

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/include/mach/dma.h

index 58d98ad981e482124952b67fb22b734034287e8b..06e9cbe8b8ebd7a4e15045d748b1a2bed28e9b84 100644 (file)
@@ -1220,7 +1220,7 @@ static void create_dma_lch_chain(int lch_head, int lch_queue)
  *          Failure: -EINVAL/-ENOMEM
  */
 int omap_request_dma_chain(int dev_id, const char *dev_name,
-                          void (*callback) (int chain_id, u16 ch_status,
+                          void (*callback) (int lch, u16 ch_status,
                                             void *data),
                           int *chain_id, int no_of_chans, int chain_mode,
                           struct omap_dma_channel_params params)
index 35fefdb0b79a0cdd5ced2d7396ebbcc478f4a399..19df76f97ab39046bfd64dd09300e130d9833278 100644 (file)
@@ -532,7 +532,7 @@ extern int omap_get_dma_index(int lch, int *ei, int *fi);
 /* Chaining APIs */
 #ifndef CONFIG_ARCH_OMAP1
 extern int omap_request_dma_chain(int dev_id, const char *dev_name,
-                                 void (*callback) (int chain_id, u16 ch_status,
+                                 void (*callback) (int lch, u16 ch_status,
                                                    void *data),
                                  int *chain_id, int no_of_chans,
                                  int chain_mode,