Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08c625ec authored by Puneet Yatnal's avatar Puneet Yatnal
Browse files

drivers: iio: imu: Fixed compilaton issue when early buffer not enabled



Fixed the compiltion issue of asm330 where the struct st_asm330lhh_sensor
has no member named 'sensor_buff' when early buffer is not
enabled for asm330.

Change-Id: Ic3858b710b7ba53498d38c632a5b851a8fa40e68
Signed-off-by: default avatarPuneet Yatnal <puneet@codeaurora.org>
parent 022f44a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@ struct st_asm330lhh_sensor {
	u16 watermark;
	u8 batch_mask;
	u8 batch_addr;
	struct mutex sensor_buff;
#ifdef CONFIG_ENABLE_ASM_ACC_GYRO_BUFFERING
	bool read_boot_sample;
	int bufsample_cnt;
@@ -191,7 +192,6 @@ struct st_asm330lhh_sensor {
	int max_buffer_time;
	struct input_dev *buf_dev;
	int report_evt_cnt;
	struct mutex sensor_buff;
#endif
};