From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] switching from at91 to gpio driver
Date: Tue, 20 Nov 2007 20:07:08 +0000 [thread overview]
Message-ID: <20071120210708.6052eafd@hyperion.delvare> (raw)
In-Reply-To: <loom.20071115T225659-359@post.gmane.org>
Konbanwa Atsushi-san,
On Tue, 20 Nov 2007 21:59:37 +0900 (JST), Atsushi Nemoto wrote:
> On Sun, 18 Nov 2007 17:43:54 +0100, Jean Delvare <khali@linux-fr.org> wrote:
> > Indeed there needs to be a way to set the class of i2c-gpio buses to
> > I2C_CLASS_HWMON. We could change the driver to set the class to
> > I2C_CLASS_HWMON for all buses by default, but that's not very flexible.
> > It would IMHO make more sense to add a field to struct
> > i2c_gpio_platform_data, and let each user of i2c-gpio set the class to
> > whatever they want.
> >
> > Maybe you, Haavard or Atsushi can submit a patch doing this? I'd be
> > happy to review and merge it quickly.
>
> I think just setting I2C_CLASS_HWMON (or I2C_CLASS_ALL) in
> i2c_gpio_probe would be enough.
>
> Well, frankly, I cannot understand the purpose of I2C_CLASS_XXX at
> all. For example, what is an requirement for I2C_CLASS_HWMON?
There are no requirements. Classes are only informative, restricting
which i2c buses will be scanned by some categories of i2c chip drivers.
For example, hwmon drivers only scan i2c buses with I2C_CLASS_HWMON set.
I wouldn't recommend setting I2C_CLASS_ALL in i2c-gpio, as it pretty
much voids the idea of i2c classes. But on second thought,
I2C_CLASS_HWMON should work fine. That's what almost all
general-purpose i2c bus drivers do after all.
So, if someone sends me a patch adding class I2C_CLASS_HWMON to
i2c-gpio, I'll take that.
Arigato,
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2007-11-20 20:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-15 23:10 [lm-sensors] switching from at91 to gpio driver Sergei Sharonov
2007-11-18 16:43 ` Jean Delvare
2007-11-20 12:59 ` Atsushi Nemoto
2007-11-20 20:07 ` Jean Delvare [this message]
2007-11-22 15:50 ` Atsushi Nemoto
2007-11-22 21:42 ` Jean Delvare
2007-11-23 15:53 ` Atsushi Nemoto
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=20071120210708.6052eafd@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lm-sensors@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.