Input: ad7879 - do not manipulate capability bits directly
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 Feb 2017 19:56:20 +0000 (11:56 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Mar 2017 17:42:45 +0000 (09:42 -0800)
commit4f95963558d4ed0019938b5410a3402700a1bc4c
tree5fe625d8dcbe63b9501a78872f9c2028840cc755
parent3a97c3d16b9e087a1741c527ecd8cbb4039d609f
Input: ad7879 - do not manipulate capability bits directly

Instead of manipulating capabilities bits of input device directly, let's
use input_set_capability() API.

Also, stop setting ABS_X/Y bits explicitly as input_set_abs_params() does
this for us.

Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ad7879.c