Changeset 2989

Show
Ignore:
Timestamp:
05/06/05 16:41:55 (8 years ago)
Author:
mds
Message:

updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/doc/developers/new_drivers

    r2805 r2989  
    1111 
    1212These instructions are for 2.4-kernel-compatible drivers. 
    13 If you wish to write a driver for 2.5 only, email us for information. 
     13If you wish to write a driver for 2.6 only, not all of the following 
     14steps apply. 
    1415 
    1516--------------------------------------------------------------------- 
     
    7475 
    7576* Test the module. 
    76   This is usually the boring part... 
    7777  Test with a recent 2.4 kernel. 
     78  For bus drivers, use i2cdetect and i2cdump. For i2cdump, test all supported 
     79  bus access modes (see i2cdump man page). 
     80  For chip drivers, cat all files in applicable /proc or /sys directory 
     81  and check for problems. Write all supported settings. 
     82  Check ALARM indications. 
    7883 
    7984* Add detection information to prog/detect/sensors-detect. 
     
    96101  makes the included 'sensors' program pretty-print your chip information. 
    97102 
    98 * Add a call to the procedure in prog/sensors/main.c (for chip drivers only). 
    99   Put it at the bottom of do_a_print(). 
     103* Add an line for the procedure in the matches[] table in 
     104  prog/sensors/main.c (for chip drivers only). 
     105  This tells sensors to call your new procedure when the chip name matches. 
    100106 
    101107* Add entries to etc/sensors.conf.eg (for chip drivers only). 
    102108  If needed, you can set defaults here. 
     109 
     110* Test the userspace apps (sensors-detect and sensors). 
     111  Test setting limits with sensors -s. 
    103112 
    104113* Add the name of the device to the README file. 
     
    109118 
    110119* Write a doc/chips/xxx or doc/busses/xxx file. 
     120 
     121* Add entry to doc/chips/SUMMARY (for chip drivers only). 
    111122 
    112123* Clearly specify licensing and copyright. 
     
    124135  or check them in. 
    125136 
    126 * If you want to have your driver integrated to Linux 2.5, you have to 
     137* If you want to have your driver integrated to Linux 2.6, you have to 
    127138  port your driver to the new sysfs interface. Once done and preferably 
    128139  after testing, submit a patch to the Linux kernel mailing list 
    129   <linux-kernel at vger dot kernel dot org> and Greg KH (greg at kroah 
     140  <linux-kernel at vger dot kernel dot org>, our mailing list 
     141  <sensors at stimpy dot netroedge.com>,and Greg KH (greg at kroah 
    130142  dot com). 
    131143