Changeset 1180

Show
Ignore:
Timestamp:
09/18/01 17:23:13 (7 years ago)
Author:
mds
Message:

add step for modifying prog/sensors/main.c -

as suggested by Hermann Jung.

Files:

Legend:

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

    r1175 r1180  
    55forget anything. 
    66We are more than happy to help you with any part of the process. 
     7 
     8There are two types of drivers, chip and bus. 
     9Steps which apply to only one type of driver are noted. 
    710 
    811 
     
    6770  Contact us if you need more assistance. 
    6871 
    69 * Add entries to etc/sensors.conf.eg (for chip drivers only). 
    70   If needed, you can set defaults here. 
     72* Add alarm definitions to kernel/include/sensors.h (for chip drivers only). 
     73  These define the bits in the 'alarms' entry in /proc.         
    7174 
    7275* Add a procedure to prog/sensors/chips.[ch] (for chip drivers only). 
    7376  This is a function specific for your driver that 
    7477  makes the included 'sensors' program pretty-print your chip information. 
     78 
     79* Add a call to the procedure in prog/sensors/main.c (for chip drivers only). 
     80  Put it at the bottom of do_a_print(). 
     81 
     82* Add entries to etc/sensors.conf.eg (for chip drivers only). 
     83  If needed, you can set defaults here. 
    7584 
    7685* Add the name of the device to the README file.