]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/linux/hid-sensor-hub.h
iio: hid-sensor-hub: Implement batch mode
[mirror_ubuntu-jammy-kernel.git] / include / linux / hid-sensor-hub.h
index f32d7c392c1ec9532a51e801e45a22e4942d0661..fc7aae64dcde8d51d6732395ad6555ceaa845f4a 100644 (file)
@@ -233,12 +233,14 @@ struct hid_sensor_common {
        atomic_t user_requested_state;
        int poll_interval;
        int raw_hystersis;
+       int latency_ms;
        struct iio_trigger *trigger;
        int timestamp_ns_scale;
        struct hid_sensor_hub_attribute_info poll;
        struct hid_sensor_hub_attribute_info report_state;
        struct hid_sensor_hub_attribute_info power_state;
        struct hid_sensor_hub_attribute_info sensitivity;
+       struct hid_sensor_hub_attribute_info report_latency;
        struct work_struct work;
 };
 
@@ -276,5 +278,8 @@ s32 hid_sensor_read_poll_value(struct hid_sensor_common *st);
 
 int64_t hid_sensor_convert_timestamp(struct hid_sensor_common *st,
                                     int64_t raw_value);
+bool hid_sensor_batch_mode_supported(struct hid_sensor_common *st);
+int hid_sensor_set_report_latency(struct hid_sensor_common *st, int latency);
+int hid_sensor_get_report_latency(struct hid_sensor_common *st);
 
 #endif