#define HID_USAGE_SENSOR_TYPE_BIOMETRIC_PRESENCE 0x11 #define HID_USAGE_SENSOR_TYPE_BIOMETRIC_PROXIMITY 0x12 #define HID_USAGE_SENSOR_TYPE_BIOMETRIC_TOUCH 0x13 This driver either loads on HID_USAGE_SENSOR_TYPE_BIOMETRIC_PRESENCE or Lenovo custom sensor, which merge all channels, in that case they will share one sampling frequency for all. So there is no guarantee. Thanks, Srinivas > > > > Jonathan > > > > > > > > > --- > > > Changes in v2: > > > - Use separate > > > - Link to v1: > > > https://lore.kernel.org/r/20241205-fix-hid-sensor-v1-1-9b789f39c220@xxxxxxxxxxxx > > > --- > > > Â drivers/iio/light/hid-sensor-prox.c | 7 ++++--- > > > Â 1 file changed, 4 insertions(+), 3 deletions(-) > > > > > > diff --git a/drivers/iio/light/hid-sensor-prox.c > > > b/drivers/iio/light/hid-sensor-prox.c > > > index c83acbd78275..71dcef3fbe57 100644 > > > --- a/drivers/iio/light/hid-sensor-prox.c > > > +++ b/drivers/iio/light/hid-sensor-prox.c > > > @@ -49,9 +49,10 @@ static const u32 prox_sensitivity_addresses[] > > > = { > > > Â #define PROX_CHANNEL(_is_proximity, _channel) \ > > > Â Â Â Â Â {\ > > > Â Â Â Â Â Â Â Â Â Â Â Â Â .type = _is_proximity ? IIO_PROXIMITY : > > > IIO_ATTENTION,\ > > > -Â Â Â Â Â Â Â Â Â Â Â Â .info_mask_separate = _is_proximity ? > > > BIT(IIO_CHAN_INFO_RAW) :\ > > > -Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â > > > BIT(IIO_CHAN_INFO_PROCESSED),\ > > > -Â Â Â Â Â Â Â Â Â Â Â Â .info_mask_shared_by_type = > > > BIT(IIO_CHAN_INFO_OFFSET) |\ > > > +Â Â Â Â Â Â Â Â Â Â Â Â .info_mask_separate = \ > > > +Â Â Â Â Â Â Â Â Â Â Â Â (_is_proximity ? BIT(IIO_CHAN_INFO_RAW) :\ > > > +Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â BIT(IIO_CHAN_INFO_PROCESSED)) |\ > > > +Â Â Â Â Â Â Â Â Â Â Â Â BIT(IIO_CHAN_INFO_OFFSET) |\ > > > Â Â Â Â Â Â Â Â Â Â Â Â Â BIT(IIO_CHAN_INFO_SCALE) |\ > > > Â Â Â Â Â Â Â Â Â Â Â Â Â BIT(IIO_CHAN_INFO_SAMP_FREQ) |\ > > > Â Â Â Â Â Â Â Â Â Â Â Â Â BIT(IIO_CHAN_INFO_HYSTERESIS),\ > > > > > > --- > > > base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8 > > > change-id: 20241203-fix-hid-sensor-62e1979ecd03 > > > > > > Best regards, > > > >