Show
Ignore:
Timestamp:
12/01/98 22:11:32 (16 years ago)
Author:
frodo
Message:

Many things, most notable the lm78 module

* Some Makefile changes. doc/makefiles documents most of them.
* The lm78 module now compiles, but it will still crash.
* New module sensors, with general code usable by chip driver modules
* i2c-core: added function i2c_adapter_id(), which returns a (low)

unique i2c-bus ID.

* lm78.h stuff moved into lm78.c or sensors.h

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/include/compat.h

    r15 r19  
    3838#endif /* def MODULE */ 
    3939 
     40/* copy_from/to_usr is called memcpy_from/to_fs in 2.0 kernels; perhaps in 
     41   some early 2.1 kernels too? */ 
     42#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,4)) 
     43#define copy_from_user memcpy_fromfs 
     44#define copy_to_user memcpy_tofs 
     45#endif 
     46 
     47/* get_user was redefined in 2.1 kernels to use two arguments, and returns 
     48   an error code */ 
     49#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,4)) 
     50#define get_user_data(to,from) ((to) = get_user(from),0) 
     51#else 
     52#define get_user_data(to,from) get_user(to,from) 
     53#endif 
     54 
     55 
    4056#endif /* SENSORS_COMPAT_H */