therm_adt746x.c, the code

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

 



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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: therm_adt746x.c.gz
Type: application/x-gzip
Size: 5701 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090327/b0a4d876/attachment.gz 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux