]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8dc97da978d43091ea660231e30313838b0d139d
tree66475a661f5a1f6d382120ab4b2b586e2a752f82
parent9529ee21161d81cc8883f3636433c6eb1b2df254
[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