gpio/gpio-stmpe: Fix the value returned by _get_value routine
authorBhupesh Sharma <bhupesh.sharma@st.com>
Mon, 27 Feb 2012 05:49:43 +0000 (11:19 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Mar 2012 17:36:38 +0000 (11:36 -0600)
commit7535b8bef067b71070ed5bdcf3606402f1e99618
treebb4c57bbbe2c143a98d9d1f9690df8dc2ed97356
parent0dc665d426691fd75fe9b6b16295ad0c02677d21
gpio/gpio-stmpe: Fix the value returned by _get_value routine

The present _get_value routine returns the contents of the GPIO Monitor Pin
Status Register(GPMR) starting from the bit whose value is requested to BIT 0
(irrelevant bits are replace by 0).

For e.g. if we request the value of GPIO 6 in the earlier implementation the
value returned is:

BIT6 followed by 6 0's

whereas it should just return BIT6.

This patch addresses the same.

Signed-off-by: Bhupesh Sharma <bhupesh.sharma@st.com>
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-stmpe.c
This page took 0.027769 seconds and 5 git commands to generate.