Re: [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

> On an embedded board this would typically be in the board config
> file.  For example, see arch/arm/mach-pxa/imote2.c which has an sht15
> attached.  The exact method of registration may be a bit architecture
> specific but will look something like the relevant parts of that file.
Was trying to look through the imote2.c but i did not get any exact
match, i am not sure if you are talking about the traditional method
of declaring the platform data/device and use sort of
platform_register(). Are you talking about the following chunk?

[vcc_sensor_1_8] = {
248                 .constraints = { /* default 1.8V */
249                         .name = "vcc_sensor_1_8",
250                         .min_uV = 1800000,
251                         .max_uV = 1800000,
252                 },
253         },

How does the structure in  sht15_platform_data in the sht15 code
relate to this?  I am a bit confused.
-Alfred.
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux