Skip to content

Commit 6e897cc

Browse files
ubiedakartben
authored andcommitted
sensor: adxl372: Fix build time issue due to shift variable namespace
Change `data->header.shift` to `data->shift`, as it is not contained within the header struct. Signed-off-by: Luis Ubieda <[email protected]>
1 parent 5847680 commit 6e897cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/adi/adxl372/adxl372_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec
5050
memset(data, 0, sizeof(struct sensor_three_axis_data));
5151
data->header.base_timestamp_ns = enc_data->timestamp;
5252
data->header.reading_count = 1;
53-
data->header.shift = 11; /* Sensor shift */
53+
data->shift = 11; /* Sensor shift */
5454

5555
buffer += sizeof(struct adxl372_fifo_data);
5656

0 commit comments

Comments
 (0)