Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191585
b: refs/heads/master
c: 02ca508
h: refs/heads/master
i:
  191583: be4e472
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Mar 23, 2010
1 parent a515f89 commit caa5999
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bab9d426e6dbd9ea09330919a33d35d5faab400
refs/heads/master: 02ca5083f60521d09f13224596564a405108bc4c
1 change: 0 additions & 1 deletion trunk/arch/sh/include/asm/dmaengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ enum {
SHDMA_SLAVE_SIUA_RX,
SHDMA_SLAVE_SIUB_TX,
SHDMA_SLAVE_SIUB_RX,
SHDMA_SLAVE_NUMBER, /* Must stay last */
};

struct sh_dmae_slave_config {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/dma/shdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ enum sh_dmae_desc_status {
#define LOG2_DEFAULT_XFER_SIZE 2

/* A bitmask with bits enough for enum sh_dmae_slave_chan_id */
static unsigned long sh_dmae_slave_used[BITS_TO_LONGS(SHDMA_SLAVE_NUMBER)];
static unsigned long sh_dmae_slave_used[BITS_TO_LONGS(SH_DMA_SLAVE_NUMBER)];

static void sh_dmae_chan_ld_cleanup(struct sh_dmae_chan *sh_chan, bool all);

Expand Down Expand Up @@ -274,7 +274,7 @@ static struct sh_dmae_slave_config *sh_dmae_find_slave(
struct sh_dmae_pdata *pdata = shdev->pdata;
int i;

if (param->slave_id >= SHDMA_SLAVE_NUMBER)
if (param->slave_id >= SH_DMA_SLAVE_NUMBER)
return NULL;

for (i = 0; i < pdata->slave_num; i++)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/dma/shdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <asm/dmaengine.h>

#define SH_DMA_SLAVE_NUMBER 256
#define SH_DMA_TCR_MAX 0x00FFFFFF /* 16MB */

struct device;
Expand Down

0 comments on commit caa5999

Please sign in to comment.