Changeset 2989
- Timestamp:
- 05/06/05 16:41:55 (8 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/doc/developers/new_drivers (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/doc/developers/new_drivers
r2805 r2989 11 11 12 12 These instructions are for 2.4-kernel-compatible drivers. 13 If you wish to write a driver for 2.5 only, email us for information. 13 If you wish to write a driver for 2.6 only, not all of the following 14 steps apply. 14 15 15 16 --------------------------------------------------------------------- … … 74 75 75 76 * Test the module. 76 This is usually the boring part...77 77 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. 78 83 79 84 * Add detection information to prog/detect/sensors-detect. … … 96 101 makes the included 'sensors' program pretty-print your chip information. 97 102 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. 100 106 101 107 * Add entries to etc/sensors.conf.eg (for chip drivers only). 102 108 If needed, you can set defaults here. 109 110 * Test the userspace apps (sensors-detect and sensors). 111 Test setting limits with sensors -s. 103 112 104 113 * Add the name of the device to the README file. … … 109 118 110 119 * Write a doc/chips/xxx or doc/busses/xxx file. 120 121 * Add entry to doc/chips/SUMMARY (for chip drivers only). 111 122 112 123 * Clearly specify licensing and copyright. … … 124 135 or check them in. 125 136 126 * If you want to have your driver integrated to Linux 2. 5, you have to137 * If you want to have your driver integrated to Linux 2.6, you have to 127 138 port your driver to the new sysfs interface. Once done and preferably 128 139 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 130 142 dot com). 131 143
