HID: hid-sensor-hub: fix indentation accross the code
Patch just rearranges lines to be more compact and/or readable. Additionally it converts double space to one in several places. There is no functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
committed by
Jiri Kosina
parent
58c59bc997
commit
5902fde19a
@@ -103,8 +103,7 @@ static int sensor_hub_get_physical_device_count(
|
|||||||
|
|
||||||
list_for_each_entry(report, &report_enum->report_list, list) {
|
list_for_each_entry(report, &report_enum->report_list, list) {
|
||||||
field = report->field[0];
|
field = report->field[0];
|
||||||
if (report->maxfield && field &&
|
if (report->maxfield && field && field->physical)
|
||||||
field->physical)
|
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -394,6 +393,7 @@ static int sensor_hub_reset_resume(struct hid_device *hdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handle raw report as sent by device
|
* Handle raw report as sent by device
|
||||||
*/
|
*/
|
||||||
@@ -421,7 +421,6 @@ static int sensor_hub_raw_event(struct hid_device *hdev,
|
|||||||
spin_lock_irqsave(&pdata->lock, flags);
|
spin_lock_irqsave(&pdata->lock, flags);
|
||||||
|
|
||||||
for (i = 0; i < report->maxfield; ++i) {
|
for (i = 0; i < report->maxfield; ++i) {
|
||||||
|
|
||||||
hid_dbg(hdev, "%d collection_index:%x hid:%x sz:%x\n",
|
hid_dbg(hdev, "%d collection_index:%x hid:%x sz:%x\n",
|
||||||
i, report->field[i]->usage->collection_index,
|
i, report->field[i]->usage->collection_index,
|
||||||
report->field[i]->usage->hid,
|
report->field[i]->usage->hid,
|
||||||
|
Reference in New Issue
Block a user