From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Felipe Balbi <felipe.balbi@nokia.com>
Cc: linux-omap@vger.kernel.org, Anton Vorontsov <cbou@mail.ru>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH 0/4] bq27x00 updates
Date: Sat, 18 Oct 2008 01:40:06 +0400 [thread overview]
Message-ID: <20081017214006.GA5455@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <1224277248-17021-1-git-send-email-felipe.balbi@nokia.com>
Hi Felipe,
On Sat, Oct 18, 2008 at 12:00:44AM +0300, Felipe Balbi wrote:
> The previous driver for bq27x00 batteries was a real
> ifdef mess. The following patches separate common code
> and create separate drivers for bq27200 and bq27000.
>
> The code looks much cleaner, but we had to keep a global
> static pointer to hold the i2c_client (bq27200) or the
> w1 device (bq27000).
>
> If anyone has a better solution, I'd like to hear since
> keeping that global pointer doesn't look nice.
>
> I could only test bq27200 final driver, I don't have
> hw for testing bq27000 so I'd like to ask anyone who
> has such hw, please test it.
>
> I'd say that after the following patches we can already
> send both drivers to mainline since they look quite
> fine now. Improvements might come later, but for now, they
> look fine.
>
> David and Anton, I'm Ccing you guys for you to take a look
> at the drivers before I send the final version (against mainline)
> to you for integration. It would be nice if you guys could take
> a look at the patches and if something looks wrong we could fix
> it and get the drivers in better shape before asking bugging lkml
> with such drivers.
At first glance, the patches look ideal. I'll try to review them
more carefully tomorrow.
One thing though: we can't delete the old driver now. I'm about
to send a pull request to Linus. Though I think we can hurry up and
merge the new driver for 2.6.28, but delete the old one in 2.6.29.
This means that you might want to redo the patches this way:
> Felipe Balbi (4):
> power_supply: bq27x00: separate common code
This one should include its own Kconfig/Makefile entries.
> power_supply: bq27200: separate bq27200-specific driver
Ditto.
> power_supply: bq27200: separate bq27000-specific driver
Ditto.
> power_supply: bq27x00: get rid of old code
We delay this patch for 2.6.29.
> drivers/power/Kconfig | 25 +--
> drivers/power/Makefile | 3 +-
> drivers/power/bq27000.c | 173 ++++++++++++
> drivers/power/bq27200.c | 202 ++++++++++++++
> drivers/power/bq27x00.c | 190 +++++++++++++
> drivers/power/bq27x00.h | 54 ++++
> drivers/power/bq27x00_battery.c | 564 ---------------------------------------
> 7 files changed, 630 insertions(+), 581 deletions(-)
> create mode 100644 drivers/power/bq27000.c
> create mode 100644 drivers/power/bq27200.c
> create mode 100644 drivers/power/bq27x00.c
> create mode 100644 drivers/power/bq27x00.h
> delete mode 100644 drivers/power/bq27x00_battery.c
>
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2008-10-17 21:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 21:00 [PATCH 0/4] bq27x00 updates Felipe Balbi
2008-10-17 21:00 ` [PATCH 1/4] power_supply: bq27x00: separate common code Felipe Balbi
2008-10-17 21:00 ` [PATCH 2/4] power_supply: bq27200: separate bq27200-specific driver Felipe Balbi
2008-10-17 21:00 ` [PATCH 3/4] power_supply: bq27200: separate bq27000-specific driver Felipe Balbi
2008-10-17 21:00 ` [PATCH 4/4] power_supply: bq27x00: get rid of old code Felipe Balbi
2008-10-18 21:46 ` [PATCH 2/4] power_supply: bq27200: separate bq27200-specific driver Anton Vorontsov
2008-10-18 22:34 ` Felipe Balbi
2008-10-18 21:36 ` [PATCH 1/4] power_supply: bq27x00: separate common code Anton Vorontsov
2008-10-18 22:29 ` Felipe Balbi
2008-10-18 23:53 ` Anton Vorontsov
2008-10-17 21:40 ` Anton Vorontsov [this message]
2008-10-17 21:45 ` [PATCH 0/4] bq27x00 updates Felipe Balbi
2008-10-18 21:16 ` Anton Vorontsov
2008-10-18 22:23 ` Felipe Balbi
2008-10-18 23:47 ` Anton Vorontsov
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=20081017214006.GA5455@oksana.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=cbou@mail.ru \
--cc=dwmw2@infradead.org \
--cc=felipe.balbi@nokia.com \
--cc=linux-omap@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.