linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Dirk Behme <dirk.behme@de.bosch.com>, linux-input@vger.kernel.org
Subject: Re: [PATCH 2/2] Input: zforce - convert to use the gpiod interface
Date: Tue, 07 Jul 2015 20:38:51 +0200	[thread overview]
Message-ID: <559C1CBB.2070000@gmail.com> (raw)
In-Reply-To: <20150706232551.GD32140@dtor-ws>

On 07.07.2015 01:25, Dmitry Torokhov wrote:
> Hi Dirk,
>
> On Fri, Jul 03, 2015 at 11:07:49AM +0200, Dirk Behme wrote:
>> diff --git a/include/linux/platform_data/zforce_ts.h b/include/linux/platform_data/zforce_ts.h
>> index 44cd90f..1794268 100644
>> --- a/include/linux/platform_data/zforce_ts.h
>> +++ b/include/linux/platform_data/zforce_ts.h
>> @@ -15,12 +15,9 @@
>>   #ifndef _LINUX_INPUT_ZFORCE_TS_H
>>   #define _LINUX_INPUT_ZFORCE_TS_H
>>
>> -#include <linux/of_gpio.h>
>> -
>>   struct zforce_ts_platdata {
>> -	int gpio_int;
>> -	int gpio_rst;
>> -	enum of_gpio_flags reset_active_low;
>> +	struct gpio_desc *gpio_int;
>> +	struct gpio_desc *gpio_rst;
>>
>>   	unsigned int x_max;
>>   	unsigned int y_max;
>
> I do not think we should be plumbing GPIO descriptors directly into
> platform data. If board doe snot want to use DT/ACPI they will simply
> have to attach GPIO lookup table to the device (via
> gpiod_add_lookup_table).
>
> So I intend to apply the version below...

While it's technically fine, it seems to mix the two parts I've done 
in separate patches (adding the missing polarity handling and 
converting to gpiod) in one patch. Which might be less obvious to 
reviewers and in case of regressions. But anyway, if you like this, 
I'm fine with it.

Thanks!

Best regards

Dirk


      reply	other threads:[~2015-07-07 18:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03  9:07 [PATCH 0/2] Input: zforce - update GPIO handling Dirk Behme
2015-07-03  9:07 ` [PATCH 1/2] Input: zforce - add DT support for reset GPIO polarity Dirk Behme
2015-07-03  9:07 ` [PATCH 2/2] Input: zforce - convert to use the gpiod interface Dirk Behme
2015-07-06 23:25   ` Dmitry Torokhov
2015-07-07 18:38     ` Dirk Behme [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559C1CBB.2070000@gmail.com \
    --to=dirk.behme@gmail.com \
    --cc=dirk.behme@de.bosch.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).