Commit 279b918d authored by Santosh Shilimkar's avatar Santosh Shilimkar Committed by Tony Lindgren

ARM: OMAP2/3: sDMA: Correct omap_request_dma_chain(), v2

Original OMAP DMA chaining design had chain_id as one of the callback
parameters. Patch 538528de 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=2Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0815f8ea
...@@ -1220,7 +1220,7 @@ static void create_dma_lch_chain(int lch_head, int lch_queue) ...@@ -1220,7 +1220,7 @@ static void create_dma_lch_chain(int lch_head, int lch_queue)
* Failure: -EINVAL/-ENOMEM * Failure: -EINVAL/-ENOMEM
*/ */
int omap_request_dma_chain(int dev_id, const char *dev_name, 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), void *data),
int *chain_id, int no_of_chans, int chain_mode, int *chain_id, int no_of_chans, int chain_mode,
struct omap_dma_channel_params params) struct omap_dma_channel_params params)
......
...@@ -532,7 +532,7 @@ extern int omap_get_dma_index(int lch, int *ei, int *fi); ...@@ -532,7 +532,7 @@ extern int omap_get_dma_index(int lch, int *ei, int *fi);
/* Chaining APIs */ /* Chaining APIs */
#ifndef CONFIG_ARCH_OMAP1 #ifndef CONFIG_ARCH_OMAP1
extern int omap_request_dma_chain(int dev_id, const char *dev_name, 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), void *data),
int *chain_id, int no_of_chans, int *chain_id, int no_of_chans,
int chain_mode, int chain_mode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment