mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
add step for modifying prog/sensors/main.c -
as suggested by Hermann Jung. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1180 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d78cb7b93b
commit
e0716be8c8
1 file changed
+11
-2
@@ -5,6 +5,9 @@ Don't be intimidated by the list, it's just here so we don't
|
||||
forget anything.
|
||||
We are more than happy to help you with any part of the process.
|
||||
|
||||
There are two types of drivers, chip and bus.
|
||||
Steps which apply to only one type of driver are noted.
|
||||
|
||||
|
||||
* Contact us first.
|
||||
You are of course free to write your own drivers, but it is smart to
|
||||
@@ -66,13 +69,19 @@ We are more than happy to help you with any part of the process.
|
||||
see also the comments in etc/sensors.conf.eg for help.
|
||||
Contact us if you need more assistance.
|
||||
|
||||
* Add entries to etc/sensors.conf.eg (for chip drivers only).
|
||||
If needed, you can set defaults here.
|
||||
* Add alarm definitions to kernel/include/sensors.h (for chip drivers only).
|
||||
These define the bits in the 'alarms' entry in /proc.
|
||||
|
||||
* Add a procedure to prog/sensors/chips.[ch] (for chip drivers only).
|
||||
This is a function specific for your driver that
|
||||
makes the included 'sensors' program pretty-print your chip information.
|
||||
|
||||
* Add a call to the procedure in prog/sensors/main.c (for chip drivers only).
|
||||
Put it at the bottom of do_a_print().
|
||||
|
||||
* Add entries to etc/sensors.conf.eg (for chip drivers only).
|
||||
If needed, you can set defaults here.
|
||||
|
||||
* Add the name of the device to the README file.
|
||||
|
||||
* Add your name to the CONTRIBUTORS file.
|
||||
|
||||
Reference in new issue
Block a user