p54spi: remove dead code and definitions

This patch removes some dead code:
p54spi.c:115: warning: ‘p54spi_read16’ defined but not used

and while we're at it, p54spi_registers_array is purged as well.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Christian Lamparter 2009-07-04 17:49:59 +02:00 committed by John W. Linville
parent a7eee06b87
commit 0859339b5c

View file

@ -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;
@ -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;