Skip to content
  • Martin Kepplinger's avatar
    iio: imu: st_lsm6dsx: make IIO_CHAN_INFO_SCALE shared by type · 3e23a54b
    Martin Kepplinger authored
    
    
    in_accel_x_scale, in_accel_y_scale and in_accel_z_scale are always
    the same. The scale is still defined to be in "info_mask_seperate".
    
    Userspace (iio-sensor-proxy and others) is not used to that and only
    looks for "in_accel_scale" for the scaling factor to apply.
    
    Change IIO_CHAN_INFO_SCALE from being seperate in all channel to be
    shared by type.
    
    This removes in_accel_x_scale, in_accel_y_scale and in_accel_z_scale and
    makes available in_accel_scale.
    
    Signed-off-by: default avatarMartin Kepplinger <martin.kepplinger@puri.sm>
    3e23a54b