提交 5902fde1 编写于 作者: A Andy Shevchenko 提交者: Jiri Kosina

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 58c59bc9
...@@ -103,8 +103,7 @@ static int sensor_hub_get_physical_device_count( ...@@ -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) ...@@ -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, ...@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册