On Thu, Feb 3, 2011 at 12:06, Anand Gadiyar <[email protected]> wrote:
> Varadarajan, Charulatha wrote:
>> On Wed, Feb 2, 2011 at 21:00, Sourav Poddar <[email protected]>
> wrote:
>> > The ads7846 driver requests a gpio to detect pendown events,
>> > but does not configure its direction. Configure this gpio
>> > as an input after requesting it.
>> >
>>
>> NACK to this patch too for similar reasons as in patch1 of
>> this series.
>>
>
> What similar reasons? Felipe's comment about checking for
> a return value here is valid. But I don't see your point.
>
> The driver does a gpio_request just two lines above
> and does not set the direction. gpio_request does
> not set the direction by itself. Maybe it's not essential
> and the default is to have direction as input, but
> it's quite common to explicitly configure this.

Yes. You are right. I missed this.
I checked it only from 3430SDP point of view. Sorry for the confusion.

One question. Would it be relevant to add gpio_set_debounce() for this
gpio after gpio_direction_input()?

>
> Confused,
> Anand
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to