summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/accel
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2016-10-08 17:39:07 +0100
committerJonathan Cameron <jic23@kernel.org>2016-10-23 19:34:00 +0100
commit2600e12b8ba677f78da745adbe601f411ba43d4a (patch)
tree51ca6b9c3db05d51b3ee35f47cb1f9cc2fee34dc /drivers/staging/iio/accel
parent152a6a884ae13400bd7c48f011acf81ef5225238 (diff)
staging:iio:accel:sca3000 drop some unused variables.
Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/staging/iio/accel')
-rw-r--r--drivers/staging/iio/accel/sca3000.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/iio/accel/sca3000.c b/drivers/staging/iio/accel/sca3000.c
index f9ab7b3f8e87..21428a4a3ec4 100644
--- a/drivers/staging/iio/accel/sca3000.c
+++ b/drivers/staging/iio/accel/sca3000.c
@@ -155,23 +155,19 @@
* struct sca3000_state - device instance state information
* @us: the associated spi device
* @info: chip variant information
- * @interrupt_handler_ws: event interrupt handler for all events
* @last_timestamp: the timestamp of the last event
* @mo_det_use_count: reference counter for the motion detection unit
* @lock: lock used to protect elements of sca3000_state
* and the underlying device state.
- * @bpse: number of bits per scan element
* @tx: dma-able transmit buffer
* @rx: dma-able receive buffer
**/
struct sca3000_state {
struct spi_device *us;
const struct sca3000_chip_info *info;
- struct work_struct interrupt_handler_ws;
s64 last_timestamp;
int mo_det_use_count;
struct mutex lock;
- int bpse;
/* Can these share a cacheline ? */
u8 rx[384] ____cacheline_aligned;
u8 tx[6] ____cacheline_aligned;
@@ -1430,7 +1426,6 @@ static int sca3000_clean_setup(struct sca3000_state *st)
goto error_ret;
ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE,
(st->rx[0] & SCA3000_MODE_PROT_MASK));
- st->bpse = 11;
error_ret:
mutex_unlock(&st->lock);