Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tatsunosuke.tobita@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>

authored by

Tatsunosuke Tobita and committed by
Jiri Kosina
1b8da9d8 5c24e4e9

+4 -4
+4 -4
drivers/hid/wacom_wac.c
··· 2983 2983 2984 2984 wacom_wac_battery_pre_report(hdev, report); 2985 2985 2986 - if (pad_in_hid_field && wacom->wacom_wac.pad_input) 2986 + if (pad_in_hid_field && wacom_wac->pad_input) 2987 2987 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) 2989 2989 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) 2991 2991 wacom_wac_finger_pre_report(hdev, report); 2992 2992 2993 2993 for (r = 0; r < report->maxfield; r++) { ··· 3003 3003 3004 3004 wacom_wac_battery_report(hdev, report); 3005 3005 3006 - if (true_pad && wacom->wacom_wac.pad_input) 3006 + if (true_pad && wacom_wac->pad_input) 3007 3007 wacom_wac_pad_report(hdev, report, field); 3008 3008 } 3009 3009