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:
parent
58c59bc997
commit
5902fde19a
1 changed files with 15 additions and 16 deletions
|
@ -103,8 +103,7 @@ static int sensor_hub_get_physical_device_count(
|
|||
|
||||
list_for_each_entry(report, &report_enum->report_list, list) {
|
||||
field = report->field[0];
|
||||
if (report->maxfield && field &&
|
||||
field->physical)
|
||||
if (report->maxfield && field && field->physical)
|
||||
cnt++;
|
||||
}
|
||||
|
||||
|
@ -394,6 +393,7 @@ static int sensor_hub_reset_resume(struct hid_device *hdev)
|
|||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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);
|
||||
|
||||
for (i = 0; i < report->maxfield; ++i) {
|
||||
|
||||
hid_dbg(hdev, "%d collection_index:%x hid:%x sz:%x\n",
|
||||
i, report->field[i]->usage->collection_index,
|
||||
report->field[i]->usage->hid,
|
||||
|
|
Loading…
Reference in a new issue