From: Sergei Shtylyov <sshtylyov@mvista.com>
To: kalle.jokiniemi@nokia.com
Cc: sshtylyov@mvista.com, cbouatmailru@gmail.com,
linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
balbi@ti.com, Heikki.Krogerus@nokia.com, jhnikula@gmail.com,
khilman@ti.com
Subject: Re: [PATCH v2 1/2] isp1704_charger: allow board specific powering routine
Date: Wed, 30 Mar 2011 15:18:56 +0400 [thread overview]
Message-ID: <4D9311A0.1000005@ru.mvista.com> (raw)
In-Reply-To: <9D0D31AA57AAF5499AFDC63D6472631B06D67D@008-AM1MPN1-036.mgdnok.nokia.com>
Hello.
On 29.03.2011 9:52, kalle.jokiniemi@nokia.com wrote:
>> > > diff --git a/include/linux/power/isp1704_charger.h
> > > b/include/linux/power/isp1704_charger.h
> > > > new file mode 100644
> > > > index 0000000..68096a6
> > > > --- /dev/null
> > > > +++ b/include/linux/power/isp1704_charger.h
> > > > @@ -0,0 +1,29 @@
> > > > +/*
> > > > + * ISP1704 USB Charger Detection driver
> > > > + *
> > > > + * Copyright (C) 2011 Nokia Corporation
> > > > + *
> > > > + * This program is free software; you can redistribute it and/or modify
> > > > + * it under the terms of the GNU General Public License as published by
> > > > + * the Free Software Foundation; either version 2 of the License, or
> > > > + * (at your option) any later version.
> > > > + *
> > > > + * This program is distributed in the hope that it will be useful,
> > > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > > > + * GNU General Public License for more details.
> > > > + *
> > > > + * You should have received a copy of the GNU General Public License
> > > > + * along with this program; if not, write to the Free Software
> > > > + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
> > USA
> > > > + */
> > > > +
> > > > +
> > > > +#ifndef __ISP1704_CHARGER_H
> > > > +#define __ISP1704_CHARGER_H
> > > > +
> > > > +struct isp1704_charger_data {
> > > > + void (*set_power)(bool on);
> > > > +};
> > > > +
> > > > +#endif
> > > There should be include/linux/platform_data/ directory now, specifically
> > > for such headers...
> > Thanks for the pointer, I'll put it there.
> There are things like msm-serial.h and tegra-usb.h there, but I'm not so convinced
> that this isp1704_charger.h should be there. The isp1707 component on n900 is
> a discrete chip, it's not part of the SoC, so in theory some other device or platform
> could also use it as a charger. It's not even made by TI, so it's not related in that
> sense to OMAP platform...
This directory is very new, so there's not much there yet. I don't think
it's dedicated to SoC devices. Frankly speaking, I didn't get your
argumentation here...
> What do you think about keeping it still in /include/linux/power ?
Well, I wouldn't object. It seemed to me initially that you're going to
put it into include/linux/, so I've pointed to a better place...
> - Kalle
WBR, Sergei
next prev parent reply other threads:[~2011-03-30 11:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 6:51 [PATCH v2 0/2] isp1704_charger: fix powering for N900 Kalle Jokiniemi
[not found] ` <1301295099-22066-1-git-send-email-kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2011-03-28 6:51 ` [PATCH v2 1/2] isp1704_charger: allow board specific powering routine Kalle Jokiniemi
2011-03-28 8:17 ` Sergei Shtylyov
2011-03-28 10:00 ` kalle.jokiniemi
2011-03-29 5:52 ` kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w
2011-03-30 11:18 ` Sergei Shtylyov [this message]
[not found] ` <1301295099-22066-2-git-send-email-kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2011-03-28 9:12 ` Heikki Krogerus
2011-03-28 9:57 ` kalle.jokiniemi
2011-03-28 6:51 ` [PATCH v2 2/2] RX-51: Enable isp1704 power on/off Kalle Jokiniemi
[not found] ` <1301295099-22066-3-git-send-email-kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2011-03-28 7:19 ` Keshava Munegowda
[not found] ` <17a241ba5fb52c72ed49ad345910065f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-28 8:06 ` kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w
2011-03-28 8:39 ` Felipe Balbi
[not found] ` <20110328083915.GF2251-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-03-28 8:52 ` kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w
2011-03-28 8:55 ` Felipe Balbi
[not found] ` <20110328085525.GK2251-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-03-28 8:57 ` kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w
2011-03-28 8:20 ` Sergei Shtylyov
[not found] ` <4D9044B2.5020607-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2011-03-28 8:39 ` Felipe Balbi
2011-03-28 9:57 ` kalle.jokiniemi-xNZwKgViW5gAvxtiuMwx3w
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=4D9311A0.1000005@ru.mvista.com \
--to=sshtylyov@mvista.com \
--cc=Heikki.Krogerus@nokia.com \
--cc=balbi@ti.com \
--cc=cbouatmailru@gmail.com \
--cc=jhnikula@gmail.com \
--cc=kalle.jokiniemi@nokia.com \
--cc=khilman@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@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