HID: wacom - make sure touch_input is valid before using it
HID: wacom - make sure touch_input is valid before using it

touch_input is stored in wacom_shared for pen data to report touch
switch status. It is possible, although we didn't see it happen on
Linux yet, that pen data is procesed before touch interface is
fully probed.

As a by-product of this patch, it fixes the FreeBSD issue reported
by Denis Akiyakov http://www.spinics.net/lists/linux-input/msg33971.html

Reviewed-by: Hans Petter Selasky <d2bc6bff5a66f943f8585c2bb7b1ca99ea94f8b3@selasky.org>
Tested-by: Denis Akiyakov <d3de8d3e1d765dab900682ef789e0c7aa0ef41cf@gmail.com>
Signed-off-by: Ping Cheng <dfb2633e349554895e5b55840b256039b90d8931@wacom.com>
Signed-off-by: Jiri Kosina <ed58f755cc8caaf10c3e8c731a8b86fb8f13d6cb@suse.cz>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs