Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5902fde1 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Jiri Kosina
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 58c59bc9
Loading
Loading
Loading
Loading
+15 −16
Original line number Diff line number Diff line
@@ -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,