Commit 36ab08ee authored by Sachin Kamat's avatar Sachin Kamat Committed by Lee Jones

mfd: tps65912-spi: Remove unused variable

‘rx_buf’ is not used in this function.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 0a73b28f
...@@ -32,10 +32,9 @@ static int tps65912_spi_write(struct tps65912 *tps65912, u8 addr, ...@@ -32,10 +32,9 @@ static int tps65912_spi_write(struct tps65912 *tps65912, u8 addr,
unsigned long spi_data = 1 << 23 | addr << 15 | *data; unsigned long spi_data = 1 << 23 | addr << 15 | *data;
struct spi_transfer xfer; struct spi_transfer xfer;
struct spi_message msg; struct spi_message msg;
u32 tx_buf, rx_buf; u32 tx_buf;
tx_buf = spi_data; tx_buf = spi_data;
rx_buf = 0;
xfer.tx_buf = &tx_buf; xfer.tx_buf = &tx_buf;
xfer.rx_buf = NULL; xfer.rx_buf = NULL;
......
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