From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] switching from at91 to gpio driver
Date: Thu, 22 Nov 2007 21:42:36 +0000 [thread overview]
Message-ID: <20071122224236.7acf4e23@hyperion.delvare> (raw)
In-Reply-To: <loom.20071115T225659-359@post.gmane.org>
On Fri, 23 Nov 2007 00:50:26 +0900 (JST), Atsushi Nemoto wrote:
> On Tue, 20 Nov 2007 21:07:08 +0100, Jean Delvare <khali@linux-fr.org> wrote:
> > 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.
>
> OK, done. Please review ;-)
>
> ------------------------------------------------------
> Subject: i2c: initialize adapter class for i2c-gpio driver.
>
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
> ---
> diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c
> index 44e1cd2..3ca19fc 100644
> --- a/drivers/i2c/busses/i2c-gpio.c
> +++ b/drivers/i2c/busses/i2c-gpio.c
> @@ -140,6 +140,7 @@ static int __init i2c_gpio_probe(struct platform_device *pdev)
> adap->owner = THIS_MODULE;
> snprintf(adap->name, sizeof(adap->name), "i2c-gpio%d", pdev->id);
> adap->algo_data = bit_data;
> + adap->class = I2C_CLASS_HWMON;
> adap->dev.parent = &pdev->dev;
>
> /*
>
Applied, thanks. Does this need to go in 2.6.24?
--
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-22 21:42 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
2007-11-22 15:50 ` Atsushi Nemoto
2007-11-22 21:42 ` Jean Delvare [this message]
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=20071122224236.7acf4e23@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.