commit | a8a09c8597bd301437c30ce0a4b2f511349a90aa | [log] [tgz] |
---|---|---|
author | Jason Gerecke <killertofu@gmail.com> | Mon Nov 30 17:13:49 2015 -0800 |
committer | Jiri Kosina <jkosina@suse.cz> | Wed Dec 02 21:44:51 2015 +0100 |
tree | 2198bd8c74b84615b52c865f93a4be112b1a94fe | |
parent | 16e0a6a0d27f01c47e3685a2a5e6dd2a5b0a525f [diff] |
HID: wacom: Replace magic masks and comparisons with switch cases Reasoning through the conditions under which a particular block of code in 'wacom_intuos_general' will be reached is not at all easy due to the sheer number of magic masks and comparisons. Remove these and replace them with a switch statement over the various 'types' of packets that will be encountered. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>