Mark Brown | 30 Jun 14:35

[PATCH] WM9712: Warn if user attempts to use pressure measurement with 5 wire mode

This is not supported by the hardware.

Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
---
 drivers/input/touchscreen/wm9712.c |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/drivers/input/touchscreen/wm9712.c b/drivers/input/touchscreen/wm9712.c
index 0b6e4cf..4c5d85a 100644
--- a/drivers/input/touchscreen/wm9712.c
+++ b/drivers/input/touchscreen/wm9712.c
@@ -168,6 +168,18 @@ static void wm9712_phy_init(struct wm97xx *wm)
 			64000 / rpu);
 	}

+	/* WM9712 five wire */
+	if (five_wire) {
+		dig2 |= WM9712_45W;
+		dev_dbg(wm->dev, "setting 5-wire touchscreen mode.");
+
+		if (pil) {
+			dev_warn(wm->dev, "pressure measurement is not "
+				 "supported in 5-wire mode\n");
+			pil = 0;
+		}
+	}
+
 	/* touchpanel pressure current*/
 	if (pil == 2) {
 		dig2 |= WM9712_PIL;
(Continue reading)

Dmitry Torokhov | 30 Jun 17:24

Re: [PATCH] WM9712: Warn if user attempts to use pressure measurement with 5 wire mode

Hi Mark,

On Mon, Jun 30, 2008 at 01:35:25PM +0100, Mark Brown wrote:
> This is not supported by the hardware.
> 

Applied to the 'next' tree, thank you.

--

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane