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 <luisf@croxel.com>
This commit is contained in:
Luis Ubieda 2025-02-18 19:20:01 -05:00 committed by Benjamin Cabé
commit 6e897ccd69

View file

@ -50,7 +50,7 @@ static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec
memset(data, 0, sizeof(struct sensor_three_axis_data));
data->header.base_timestamp_ns = enc_data->timestamp;
data->header.reading_count = 1;
data->header.shift = 11; /* Sensor shift */
data->shift = 11; /* Sensor shift */
buffer += sizeof(struct adxl372_fifo_data);