mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Stuff to get rid of the LM_SENSORS define
Until now, all installed include files depended on a #defined variable LM_SENSORS: if it was defined, other files were included as "somefile.h" instead of <linux/somefile.h>. This was clearly dangerous, and is fixed now, by automatically deleting the offending lines from the include file when it is installed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@180 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f31a1f45f2
commit
face12a534
8 files changed
+60
-21
No files matched your search
+10
-4
@@ -18,6 +18,12 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/* Important note: */ /* TBD */
|
||||
/* Lines like these, with the 'TBD' remark (To Be Deleted) */ /* TBD */
|
||||
/* WILL BE DELETED when this file is installed. */ /* TBD */
|
||||
/* This allows us to get rid of the ugly LM_SENSORS define */ /* TBD */
|
||||
|
||||
|
||||
#ifndef SENSORS_SENSOR_H
|
||||
#define SENSORS_SENSOR_H
|
||||
|
||||
@@ -36,11 +42,11 @@
|
||||
#include <asm/semaphore.h>
|
||||
#endif
|
||||
|
||||
#ifdef LM_SENSORS
|
||||
#include "i2c.h"
|
||||
#else /* ndef LM_SENSORS */
|
||||
#ifdef LM_SENSORS /* TBD */
|
||||
#include "i2c.h" /* TBD */
|
||||
#else /* ndef LM_SENSORS */ /* TBD */
|
||||
#include <linux/i2c.h>
|
||||
#endif /* def LM_SENSORS */
|
||||
#endif /* def LM_SENSORS */ /* TBD */
|
||||
|
||||
/* Note that this driver is *not* built upon smbus.c, but is parallel to it.
|
||||
We do not need SMBus facilities if we are on the ISA bus, after all */
|
||||
|
||||
Reference in new issue
Block a user