[media] ati_remote: Generalize KIND_ACCEL to accept diagonals
authorGeorge Spelvin <linux@horizon.com>
Sun, 11 May 2014 11:14:18 +0000 (08:14 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 02:48:41 +0000 (23:48 -0300)
commit8ecd5e32d8c8fc02d565aa0c1f3f997dea75f5de
tree66475a661f5a1f6d382120ab4b2b586e2a752f82
parentf95589cc41ff973bd5d6aecc6205b048bdb95ed7
[media] ati_remote: Generalize KIND_ACCEL to accept diagonals

Rather than having special code cases for diagonal mouse
movements, extend the general purpose code used for the
cardinal directions to handle arbitrary (x,y) deltas.

The deltas themselves are stored in translation table's "code"
field; this is also progress toward the goal of eliminating
the "value" element entirely.

Signed-off-by: George Spelvin <linux@horizon.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/ati_remote.c