Skip to content

Commit 3e55c3d

Browse files
amiclausjic23
authored andcommitted
iio: accel: sca3000: remove unused last_timestamp field
Remove unused last_timestamp field from sca3000_state struct. The field is declared but never accessed in the driver. Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 3ec0a13 commit 3e55c3d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/iio/accel/sca3000.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@
153153
* struct sca3000_state - device instance state information
154154
* @us: the associated spi device
155155
* @info: chip variant information
156-
* @last_timestamp: the timestamp of the last event
157156
* @mo_det_use_count: reference counter for the motion detection unit
158157
* @lock: lock used to protect elements of sca3000_state
159158
* and the underlying device state.
@@ -163,7 +162,6 @@
163162
struct sca3000_state {
164163
struct spi_device *us;
165164
const struct sca3000_chip_info *info;
166-
s64 last_timestamp;
167165
int mo_det_use_count;
168166
struct mutex lock;
169167
/* Can these share a cacheline ? */

0 commit comments

Comments
 (0)