]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Input: wm97xx - refactor channel selection in poll_sample()
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 5 Jul 2011 02:22:00 +0000 (19:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Jul 2011 02:31:38 +0000 (19:31 -0700)
commitc8f205258bc8942e79cd37ebc1c8ec4652a1a501
treef8851068e51f6b9575ef9778c7f24f4ba1a9aba3
parent2456689b3b11ddecc091cd5f00b9adea6a9854cf
Input: wm97xx - refactor channel selection in poll_sample()

The current implementation of poll_sample() has the problem that one of
its arguments, the channel to be selected, differs from wm9713 to other
variants. This parameter gets passed to the (currently unused)
mach-specific functions pre_sample() and post_sample() which thus have
to deal with codec-specific differences. Refactor the routine so that
the argument to poll_sample() is generic for all codecs and do necessary
conversions only in the codec-specific driver. The outcome even uses
less code and removes the non-standard use of the PEN_DOWN bit to mark
the AUX-channels.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/wm9705.c
drivers/input/touchscreen/wm9712.c
drivers/input/touchscreen/wm9713.c
include/linux/wm97xx.h