diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-01 12:44:39 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-09-18 13:27:18 +0300 |
commit | ab04f734b08a404550ba5f8391307bad2145acff (patch) | |
tree | 6b6879bd4c737206317fc649fc5fe5b22c9d200b /drivers/iio/accel/kxsd9-spi.c | |
parent | bf96f6e80cef4b9a234e8ce81aa2e333ca7ce599 (diff) | |
download | linux-ab04f734b08a404550ba5f8391307bad2145acff.tar.xz |
iio: accel: kxsd9: Do away with the write2 helper
This is just a masquerading register write function, so use the
register write function instead.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/kxsd9-spi.c')
-rw-r--r-- | drivers/iio/accel/kxsd9-spi.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/iio/accel/kxsd9-spi.c b/drivers/iio/accel/kxsd9-spi.c index ec9d00d5340f..a49c10cd7634 100644 --- a/drivers/iio/accel/kxsd9-spi.c +++ b/drivers/iio/accel/kxsd9-spi.c @@ -25,15 +25,6 @@ static int kxsd9_spi_writereg(struct kxsd9_transport *tr, u8 address, u8 val) return spi_write(spi, tr->tx, 2); } -static int kxsd9_spi_write2(struct kxsd9_transport *tr, u8 b1, u8 b2) -{ - struct spi_device *spi = tr->trdev; - - tr->tx[0] = b1; - tr->tx[1] = b2; - return spi_write(spi, tr->tx, 2); -} - static int kxsd9_spi_readval(struct kxsd9_transport *tr, u8 address) { struct spi_device *spi = tr->trdev; @@ -70,7 +61,6 @@ static int kxsd9_spi_probe(struct spi_device *spi) transport->trdev = spi; transport->readreg = kxsd9_spi_readreg; transport->writereg = kxsd9_spi_writereg; - transport->write2 = kxsd9_spi_write2; transport->readval = kxsd9_spi_readval; spi->mode = SPI_MODE_0; spi_setup(spi); |