Skip to contentSkip to conversation

therm_adt746x.c, the code

lm-sensors DaNiMoTh 1 participant 1 message Mar 27, 2009

lore
Share & tools
lore

DaNiMoTh

author
#0 lore raw

Hello list,

I've finished the first write of adt7460 and adt7467 module. It works fine on my powerbook, but I need some hints :-)
The code is attached & gzipped, if you want to test it you need to copy on drivers/macintosh .
When it will be ready, I'll post a patch for the kernel.

1) The driver compiles correctly, but recognize my device only if I insert the module with a force param:

insmod therm_adt746x.ko force=8,0x2E

How I can use the probe and / or detect routines to automagically recognize it? If I type
cat /sys/class/i2c-dev/i2c-8/name , the result is uni-n 1. I tried to use this name in the id_table without success;

2) Where I can coding "insert into pwm[1-2]_auto_pwm[1-2]_{temp,pwm} some default values" ? In the init_client function?

3) The use of likely and unlikely are correct ? Do I need to avoid its use ( I don't see much often these macro in i2c/ directory ) ?

Many thanks.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors