[i2c] How to pass board specific info to I2C driver module
khali at linux-fr.org
Mon Oct 27 09:21:25 CET 2008
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
> 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
More information about the i2c