Commit 2600e12b authored by Jonathan Cameron's avatar Jonathan Cameron

staging:iio:accel:sca3000 drop some unused variables.

Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 152a6a88
...@@ -155,23 +155,19 @@ ...@@ -155,23 +155,19 @@
* struct sca3000_state - device instance state information * struct sca3000_state - device instance state information
* @us: the associated spi device * @us: the associated spi device
* @info: chip variant information * @info: chip variant information
* @interrupt_handler_ws: event interrupt handler for all events
* @last_timestamp: the timestamp of the last event * @last_timestamp: the timestamp of the last event
* @mo_det_use_count: reference counter for the motion detection unit * @mo_det_use_count: reference counter for the motion detection unit
* @lock: lock used to protect elements of sca3000_state * @lock: lock used to protect elements of sca3000_state
* and the underlying device state. * and the underlying device state.
* @bpse: number of bits per scan element
* @tx: dma-able transmit buffer * @tx: dma-able transmit buffer
* @rx: dma-able receive buffer * @rx: dma-able receive buffer
**/ **/
struct sca3000_state { struct sca3000_state {
struct spi_device *us; struct spi_device *us;
const struct sca3000_chip_info *info; const struct sca3000_chip_info *info;
struct work_struct interrupt_handler_ws;
s64 last_timestamp; s64 last_timestamp;
int mo_det_use_count; int mo_det_use_count;
struct mutex lock; struct mutex lock;
int bpse;
/* Can these share a cacheline ? */ /* Can these share a cacheline ? */
u8 rx[384] ____cacheline_aligned; u8 rx[384] ____cacheline_aligned;
u8 tx[6] ____cacheline_aligned; u8 tx[6] ____cacheline_aligned;
...@@ -1430,7 +1426,6 @@ static int sca3000_clean_setup(struct sca3000_state *st) ...@@ -1430,7 +1426,6 @@ static int sca3000_clean_setup(struct sca3000_state *st)
goto error_ret; goto error_ret;
ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE, ret = sca3000_write_reg(st, SCA3000_REG_ADDR_MODE,
(st->rx[0] & SCA3000_MODE_PROT_MASK)); (st->rx[0] & SCA3000_MODE_PROT_MASK));
st->bpse = 11;
error_ret: error_ret:
mutex_unlock(&st->lock); mutex_unlock(&st->lock);
......
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