From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Minkyu Kang <mk7.kang@samsung.com>
Cc: Trilok Soni <soni.trilok@gmail.com>,
linux-kernel@vger.kernel.org,
linux-pm@lists.linux-foundation.org, linux-i2c@vger.kernel.org,
Anton Vorontsov <cbou@mail.ru>,
Andrew Morton <akpm@linux-foundation.org>,
kyungmin.park@samsung.com
Subject: Re: [PATCH v3] add MAX17040 Fuel Gauge driver
Date: Tue, 9 Jun 2009 01:00:07 +0400 [thread overview]
Message-ID: <20090608210007.GA29332@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <4A2C7911.80407@samsung.com>
On Mon, Jun 08, 2009 at 11:36:01AM +0900, Minkyu Kang wrote:
> Dear Trilok Soni,
>
> Thanks for review
>
> > Hi Minkyu Kang,
> >
> > On Fri, Jun 5, 2009 at 12:03 PM, Minkyu Kang<mk7.kang@samsung.com> wrote:
> >> The MAX17040 is a I2C interfaced Fuel Gauge systems for lithium-ion batteries
> >> This patch adds support the MAX17040 Fuel Gauge
> >>
> >
> > Thanks for making change. Some more comments.
> >
> >> endif # POWER_SUPPLY
> >> diff --git a/drivers/power/Makefile b/drivers/power/Makefile
> >> index 2fcf41d..9c48995 100644
> >> --- a/drivers/power/Makefile
> >> +++ b/drivers/power/Makefile
> >> @@ -25,4 +25,5 @@ obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o
> >> obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o
> >> obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o
> >> obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
> >> -obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
> >> \ No newline at end of file
> >> +obj-$(CONFIG_BATTERY_MAX17040)) += max17040_battery.o
There is a typo: "))" should be just ")". I fixed this.
I also fixed "‘max17040_set_rcomp’ defined but not used" warning
(just removed this function).
> > Are we following any alphabetical order in this Makefile?
> >
>
> I'm not sure either. :(
> I just grouping with batteries.
It's fine as is. I always wonder when somebody try to sort things
alphabetically. Humans should not bother with sorting, that's what
computers are for! ;-)
> >> +static int max17040_suspend(struct i2c_client *client,
> >> + pm_message_t state)
> >> +{
> >> + struct max17040_chip *chip = i2c_get_clientdata(client);
> >> +
> >> + cancel_delayed_work(&chip->work);
> >> + return 0;
> >> +}
> >> +
> >> +static int max17040_resume(struct i2c_client *client)
> >> +{
> >> + struct max17040_chip *chip = i2c_get_clientdata(client);
> >> +
> >> + schedule_delayed_work(&chip->work, MAX17040_DELAY);
> >> + return 0;
> >> +}
> >> +
> >
> > Please add #ifdef CONFIG_PM around suspend resume functions.
> >
>
> Ok, I will.
Just did it myself, and queued this patch for 2.6.31.
Thanks!
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2009-06-08 21:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 6:33 [PATCH v3] add MAX17040 Fuel Gauge driver Minkyu Kang
[not found] ` <4A28BC20.3010307-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2009-06-06 16:59 ` Trilok Soni
[not found] ` <5d5443650906060959w678a29acn8200239d35869dca-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-08 2:36 ` Minkyu Kang
2009-06-08 21:00 ` Anton Vorontsov [this message]
[not found] ` <20090608210007.GA29332-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2009-06-09 1:12 ` Minkyu Kang
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=20090608210007.GA29332@oksana.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=akpm@linux-foundation.org \
--cc=cbou@mail.ru \
--cc=kyungmin.park@samsung.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mk7.kang@samsung.com \
--cc=soni.trilok@gmail.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;
as well as URLs for NNTP newsgroup(s).