input: cyttsp-i2c-qc: Fix suspend/resume sequence

Check device wake up capability before entering into
suspend or resume. This makes sure touch works in proper
manner when the touch is configured as a wakeup source.

CRs-fixed: 432865
Change-Id: I215e69d3b03aa720049085ea2dbc02066efa157c
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
1 file changed