]> 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)
commit5c4c134fcddb4cbe28cc7da0b8096102606e6128
tree66475a661f5a1f6d382120ab4b2b586e2a752f82
parent5dc10561b84449090dad952b948bb0dcceb3d958
[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