[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH+eYFAEnWdvzojefix_iAefUK3BnLQNcwP2xY0vLHf5RLj5eg@mail.gmail.com>
Date: Fri, 24 Feb 2012 19:45:32 +0530
From: Rabin Vincent <rabin@....in>
To: Viresh Kumar <viresh.kumar@...com>
Cc: grant.likely@...retlab.ca, linus.walleij@...ricsson.com,
linux-kernel@...r.kernel.org, armando.visconti@...com,
shiraz.hashim@...com, vipin.kumar@...com, rajeev-dlh.kumar@...com,
deepak.sikri@...com, vipulkumar.samar@...com, amit.virdi@...com,
pratyush.anand@...com, bhupesh.sharma@...com,
viresh.linux@...il.com, bhavna.yadav@...com,
vincenzo.frascino@...com, mirko.gardi@...com,
salvatore.dedominicis@...com
Subject: Re: [PATCH] gpio/gpio-stmpe: Fix the value returned by _get_value routine
On Fri, Feb 24, 2012 at 16:04, Viresh Kumar <viresh.kumar@...com> wrote:
> 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.
>
> For e.g. if we request the value of GPIO 6 in the earlier
> implementation the value returned is:
>
> BIT6 to BIT0
>
> whereas it should just return BIT6.
The current implementation just returns (ret & mask) where mask
would have only BIT6 set, so how can it return "BIT6 to BIT0" ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists