summaryrefslogtreecommitdiff
path: root/drivers/w1
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2015-11-30 17:13:49 -0800
committerJiri Kosina <jkosina@suse.cz>2015-12-02 21:44:51 +0100
commita8a09c8597bd301437c30ce0a4b2f511349a90aa (patch)
tree2198bd8c74b84615b52c865f93a4be112b1a94fe /drivers/w1
parent16e0a6a0d27f01c47e3685a2a5e6dd2a5b0a525f (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>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions