struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
int ret = 0;
- if (report_id < 0)
- return -EINVAL;
-
mutex_lock(&data->mutex);
report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
if (!report || (field_index >= report->maxfield)) {
struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
int ret = 0;
- if (report_id < 0)
- return -EINVAL;
-
mutex_lock(&data->mutex);
report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
if (!report || (field_index >= report->maxfield)) {
struct hid_report *report;
int ret_val = 0;
- if (report_id < 0)
- return -EINVAL;
-
mutex_lock(&data->mutex);
memset(&data->pending, 0, sizeof(data->pending));
init_completion(&data->pending.ready);