Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158936
b: refs/heads/master
c: 0859339
h: refs/heads/master
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Jul 10, 2009
1 parent f3abba7 commit d9baa64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 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: a7eee06b874a02e2de75727ab21a8747ca6309ff
refs/heads/master: 0859339b5c2902a7a4ba1d4c9cf35d882f421e7f
34 changes: 0 additions & 34 deletions trunk/drivers/net/wireless/p54/p54spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,6 @@ static void p54spi_spi_write(struct p54s_priv *priv, u8 address,
spi_sync(priv->spi, &m);
}

static u16 p54spi_read16(struct p54s_priv *priv, u8 addr)
{
__le16 val;

p54spi_spi_read(priv, addr, &val, sizeof(val));

return le16_to_cpu(val);
}

static u32 p54spi_read32(struct p54s_priv *priv, u8 addr)
{
__le32 val;
Expand All @@ -139,31 +130,6 @@ static inline void p54spi_write32(struct p54s_priv *priv, u8 addr, __le32 val)
p54spi_spi_write(priv, addr, &val, sizeof(val));
}

struct p54spi_spi_reg {
u16 address; /* __le16 ? */
u16 length;
char *name;
};

static const struct p54spi_spi_reg p54spi_registers_array[] =
{
{ SPI_ADRS_ARM_INTERRUPTS, 32, "ARM_INT " },
{ SPI_ADRS_ARM_INT_EN, 32, "ARM_INT_ENA " },
{ SPI_ADRS_HOST_INTERRUPTS, 32, "HOST_INT " },
{ SPI_ADRS_HOST_INT_EN, 32, "HOST_INT_ENA" },
{ SPI_ADRS_HOST_INT_ACK, 32, "HOST_INT_ACK" },
{ SPI_ADRS_GEN_PURP_1, 32, "GP1_COMM " },
{ SPI_ADRS_GEN_PURP_2, 32, "GP2_COMM " },
{ SPI_ADRS_DEV_CTRL_STAT, 32, "DEV_CTRL_STA" },
{ SPI_ADRS_DMA_DATA, 16, "DMA_DATA " },
{ SPI_ADRS_DMA_WRITE_CTRL, 16, "DMA_WR_CTRL " },
{ SPI_ADRS_DMA_WRITE_LEN, 16, "DMA_WR_LEN " },
{ SPI_ADRS_DMA_WRITE_BASE, 32, "DMA_WR_BASE " },
{ SPI_ADRS_DMA_READ_CTRL, 16, "DMA_RD_CTRL " },
{ SPI_ADRS_DMA_READ_LEN, 16, "DMA_RD_LEN " },
{ SPI_ADRS_DMA_WRITE_BASE, 32, "DMA_RD_BASE " }
};

static int p54spi_wait_bit(struct p54s_priv *priv, u16 reg, u32 bits)
{
int i;
Expand Down

0 comments on commit d9baa64

Please sign in to comment.