From: Felipe Balbi <me@felipebalbi.com>
To: David Brownell <david-b@pacbell.net>
Cc: Felipe Balbi <felipe.balbi@nokia.com>,
linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 1/4] i2c: clean add_children a bit
Date: Thu, 25 Sep 2008 17:08:52 -0500 [thread overview]
Message-ID: <1159ad0a30debc102abd8b29586ce5bf@felipebalbi.com> (raw)
In-Reply-To: <200809251028.00242.david-b@pacbell.net>
Hi Dave,
On Thu, 25 Sep 2008 10:28:00 -0700, David Brownell <david-b@pacbell.net>
wrote:
> On Thursday 25 September 2008, Felipe Balbi wrote:
>> Clean up add_children a bit before adding more children
>> to twl4030-core.c
>>
>> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
>
> ACK, except for:
>
>> --- a/include/linux/i2c/twl4030.h
>> +++ b/include/linux/i2c/twl4030.h
>> @@ -145,4 +145,10 @@ int twl4030_free_gpio(int gpio);
>> static inline int twl4030charger_usb_en(int enable) { return 0; }
>> #endif
>>
>> +#if defined(CONFIG_RTC_DRV_TWL4030) ||
> defined(CONFIG_RTC_DRV_TWL4030_MODULE)
>> +#define twl_has_rtc() (1)
>> +#else
>> +#define twl_has_rtc() (0)
>> +#endif
>
> Who else would need this, other than the core?
> I think the answer is "nobody" ... so these macros
> belong in the core itself, not a public header.
>
> Also: parens not appropriate around those values; and
> "true" and "false" values would be a bit more clear...
you sure got a point here, I'll update the series when
I get to work tomorrow (actualy today, already 1am).
Anyways, I'll update and resend the series.
--
Best Regards,
Felipe Balbi
http://blog.felipebalbi.com
me@felipebalbi.com
next prev parent reply other threads:[~2008-09-25 22:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 14:48 [PATCH 0/4] twl4030 driver changes Felipe Balbi
2008-09-25 14:48 ` [PATCH 1/4] i2c: clean add_children a bit Felipe Balbi
2008-09-25 14:48 ` [PATCH 2/4] i2c: move twl4030_keypad to new style registration Felipe Balbi
2008-09-25 14:48 ` [PATCH 3/4] i2c: move twl4030-usb to platform_device Felipe Balbi
2008-09-25 14:48 ` [PATCH 4/4] i2c: twl4030-usb: add 'vbus' sysfs file Felipe Balbi
2008-09-25 17:28 ` [PATCH 1/4] i2c: clean add_children a bit David Brownell
2008-09-25 22:08 ` Felipe Balbi [this message]
2008-09-25 16:26 ` [PATCH 0/4] twl4030 driver changes David Brownell
2008-09-25 16:38 ` Felipe Balbi
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=1159ad0a30debc102abd8b29586ce5bf@felipebalbi.com \
--to=me@felipebalbi.com \
--cc=david-b@pacbell.net \
--cc=felipe.balbi@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/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