ism330dlc:ctrl1_xl(10h) value is overwritten every time when tring to read other registers
My board is having the accelerometer device ism330dlc. I am trying to write the value 0x4a to CTRL1_XL(10h).
I am using the default accelerometer driver :https://github.com/torvalds/linux/tree/master/drivers/iio/imu/st_lsm6dsx
I set the sampling frequency to 104000 and then I write the value 0xa to CTRL1_XL. When I check the i2cdump, I can see that the value of register 10h is set to 4a. But when I try to read the values of in_accel_x_raw, in_accel_y_raw, in_accel_z_raw , I can see the value of CTRL1_XL(10h) is getting overwritten. Could you please let me know how can I keep the value of CTRL1_XL constant without being overwritten when trying to access other register values?
