From e0716be8c8cfe33a50ba18499b5e541da3b25ebe Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Tue, 18 Sep 2001 15:23:13 +0000 Subject: [PATCH] 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 --- doc/developers/new_drivers | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/developers/new_drivers b/doc/developers/new_drivers index b15d47ae..524cf831 100644 --- a/doc/developers/new_drivers +++ b/doc/developers/new_drivers @@ -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.