Skip to content

Commit 1b8da9d

Browse files
flying-elephantJiri Kosina
authored andcommitted
HID: wacom: Clean up use of struct->wacom_wac
Replace the indirect accesses to struct->wacom_wac from struct->wacom to the direct access in order for better code reading. Signed-off-by: Tatsunosuke Tobita <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 5c24e4e commit 1b8da9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/hid/wacom_wac.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,11 +2983,11 @@ void wacom_wac_report(struct hid_device *hdev, struct hid_report *report)
29832983

29842984
wacom_wac_battery_pre_report(hdev, report);
29852985

2986-
if (pad_in_hid_field && wacom->wacom_wac.pad_input)
2986+
if (pad_in_hid_field && wacom_wac->pad_input)
29872987
wacom_wac_pad_pre_report(hdev, report);
2988-
if (pen_in_hid_field && wacom->wacom_wac.pen_input)
2988+
if (pen_in_hid_field && wacom_wac->pen_input)
29892989
wacom_wac_pen_pre_report(hdev, report);
2990-
if (finger_in_hid_field && wacom->wacom_wac.touch_input)
2990+
if (finger_in_hid_field && wacom_wac->touch_input)
29912991
wacom_wac_finger_pre_report(hdev, report);
29922992

29932993
for (r = 0; r < report->maxfield; r++) {
@@ -3003,7 +3003,7 @@ void wacom_wac_report(struct hid_device *hdev, struct hid_report *report)
30033003

30043004
wacom_wac_battery_report(hdev, report);
30053005

3006-
if (true_pad && wacom->wacom_wac.pad_input)
3006+
if (true_pad && wacom_wac->pad_input)
30073007
wacom_wac_pad_report(hdev, report, field);
30083008
}
30093009

0 commit comments

Comments
 (0)