From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Hu Mingkai-B21284 <B21284-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: How to pass board specific info to I2C driver module
Date: Mon, 27 Oct 2008 09:21:25 +0100 [thread overview]
Message-ID: <20081027092125.0192b81c@hyperion.delvare> (raw)
In-Reply-To: <CF6163088BDE8747873ADAA4AF922BF258D734-6lxYB4K41cniD3AT8lUqWFjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
Hi Vincent,
On Mon, 27 Oct 2008 10:00:44 +0800, Hu Mingkai-B21284 wrote:
> I'm working on an ADC chip (MCP3021) driver under Linux 2.6.27.
> We used these two chips to monitor the CPU core current and
> platform current individually, which is converted to voltage as
> the ADC chip's input.
> As you know, the driver shouldn't contain the board specific info,
> such as, the chip's work voltage, the ratio of voltage and current.
> So how to pass these info to the driver module?
>
> Here is the way I can think of:
> 1. to use dts file to pass the info to the module.
> This way make the driver is bound to OF implement.
>
> 2. to use the module parameter.
> For different chips, the work voltage and the ratio may be
> different,
> but the chip uses the same driver.
>
> Any other idea? Please give me some advice. Thanks a lot.
Once again this question has nothing to do with I2C, so this is the
wrong mailing list. So, once again, please ask on the lm-sensors list
instead.
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
next prev parent reply other threads:[~2008-10-27 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 2:00 How to pass board specific info to I2C driver module Hu Mingkai-B21284
[not found] ` <CF6163088BDE8747873ADAA4AF922BF258D734-6lxYB4K41cniD3AT8lUqWFjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2008-10-27 8:21 ` Jean Delvare [this message]
[not found] ` <20081027092125.0192b81c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-10-27 8:49 ` Hu Mingkai-B21284
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=20081027092125.0192b81c@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=B21284-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.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