[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D5B6AF2.8060104@wytron.com.tw>
Date: Wed, 16 Feb 2011 14:13:06 +0800
From: Thomas Chou <thomas@...ron.com.tw>
To: Grant Likely <grant.likely@...retlab.ca>
CC: Ben Dooks <ben-linux@...ff.org>, linux-kernel@...r.kernel.org,
nios2-dev@...c.et.ntust.edu.tw,
devicetree-discuss@...ts.ozlabs.org, linux-i2c@...r.kernel.org,
Albert Herranz <albert_herranz@...oo.es>
Subject: Re: [PATCH v5] i2c-gpio: add devicetree support
Hi Grant,
On 02/16/2011 01:49 PM, Grant Likely wrote:
> On Mon, Feb 14, 2011 at 10:30:10AM +0800, Thomas Chou wrote:
>> From: Albert Herranz<albert_herranz@...oo.es>
>>
>> This patch adds devicetree support to i2c-gpio driver. The allocation
>> of local data is integrated to a private structure, and use devm_*
>> helper for easy cleanup.
>>
>> It is base on an earlier patch for gc-linux from
>> Albert Herranz<albert_herranz@...oo.es>.
>>
>> Signed-off-by: Thomas Chou<thomas@...ron.com.tw>
>> CC: Albert Herranz<albert_herranz@...oo.es>
>> Acked-by: Haavard Skinnemoen<hskinnemoen@...il.com>
>
> One minor nitpick below, but I'd be fine with cleaning that up via a
> followup patch. This one looks correct to me.
>
> Acked-by: Grant Likely<grant.likely@...retlab.ca>
>
> Ben, this one depends on a patch in my devicetree/next tree. How do
> you want to handle it?
>
> g.
>
Thanks a lot.
>> +#ifdef CONFIG_OF
>> +#include<linux/of_gpio.h>
>
> Instead of putting the include here, please add #ifdef CONFIG_OF
> protection around the contents of linux/of_gpio.h itself. I fully
> support that change so that includes can remain at the top where they
> belong.
Then, my earlier patch on Jan 31, might be another solution. This way
of_gpio.h can be included at the top, and those of_gpio users will be
optimized out when of or of_gpio is not configured.
[PATCH 2/3] of: of_gpiochip_add is needed only for gpiolib
Cheers,
Thomas
--
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