Changeset 563
- Timestamp:
- 09/13/99 22:55:49 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 4 modified
-
kernel/busses/i2c-isa.c (modified) (1 diff)
-
kernel/chips/gl518sm.c (modified) (9 diffs)
-
kernel/include/compat.h (modified) (1 diff)
-
mkpatch/mkpatch.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-isa.c
r522 r563 29 29 30 30 #include <linux/i2c.h> 31 32 #include "compat.h" 31 33 32 34 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) -
lm-sensors/trunk/kernel/chips/gl518sm.c
r522 r563 151 151 struct semaphore update_lock; 152 152 153 int iterate_lock, quit_thread; 153 int iterate_lock; 154 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 155 int quit_thread; 154 156 struct task_struct *thread; 157 #endif 155 158 struct wait_queue *wq; 156 159 … … 202 205 203 206 static void gl518_update_client_rev00(struct i2c_client *client); 207 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 204 208 static int gl518_update_thread(void *data); 209 #endif 205 210 static void gl518_update_iterate(struct i2c_client *client); 206 211 … … 390 395 data->iterate = 0; 391 396 data->iterate_lock = 0; 397 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 392 398 data->quit_thread = 0; 393 399 data->thread = NULL; 400 #endif 394 401 data->alarm_mask = 0xff; 395 402 gl518_init_client((struct i2c_client *) new_client); … … 474 481 gl518_list[i] = NULL; 475 482 483 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 476 484 if (data->thread) { 477 485 data->quit_thread = 1; 478 486 wake_up_interruptible(&data->wq); 479 487 } 488 #endif 480 489 481 490 kfree(client); … … 632 641 } 633 642 634 643 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 635 644 int gl518_update_thread(void *c) 636 645 { … … 671 680 return 0; 672 681 } 682 #endif 673 683 674 684 /* This updates vdd, vin1, vin2 values by doing slow and multiple … … 710 720 gl518_write_value(client, VIN_REG(i), max[i] << 8 | min[i]); 711 721 722 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 712 723 if ((data->thread) && 713 724 ((data->quit_thread) || signal_pending(current))) 714 725 goto finish; 726 #endif 715 727 716 728 /* we wait now 1.5 seconds before comparing */ … … 981 993 data->valid=0; 982 994 995 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,68) 983 996 if ((data->iterate != 2) && (data->thread)) { 984 997 data->quit_thread = 1; … … 988 1001 kernel_thread(gl518_update_thread, (void*) client, 0); 989 1002 } 1003 #endif 990 1004 } 991 1005 } -
lm-sensors/trunk/kernel/include/compat.h
r545 r563 32 32 #include <linux/module.h> 33 33 #ifndef MODULE_AUTHOR 34 #define MODULE_AUTHOR( whatever)34 #define MODULE_AUTHOR(noone) 35 35 #endif 36 36 #ifndef MODULE_DESCRIPTION 37 #define MODULE_DESCRIPTION(whatever) 37 #define MODULE_DESCRIPTION(none) 38 #endif 39 #ifndef MODULE_PARM 40 #define MODULE_PARM(no,param) 41 #endif 42 #ifndef MODULE_PARM_DESC 43 #define MODULE_PARM_DES(no,description) 38 44 #endif 39 45 #endif /* def MODULE */ 46 47 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 48 #define EXPORT_SYMBOL(noexport) 49 #define EXPORT_NO_SYMBOLS 50 #endif 40 51 41 52 /* copy_from/to_usr is called memcpy_from/to_fs in 2.0 kernels -
lm-sensors/trunk/mkpatch/mkpatch.pl
r561 r563 700 700 #ifdef MODULE 701 701 #include <linux/module.h> 702 #endif /* def MODULE */ 702 703 #ifndef MODULE_AUTHOR 703 #define MODULE_AUTHOR( whatever)704 #define MODULE_AUTHOR(noone) 704 705 #endif 705 706 #ifndef MODULE_DESCRIPTION 706 #define MODULE_DESCRIPTION(whatever) 707 #endif 707 #define MODULE_DESCRIPTION(none) 708 #endif 709 #ifndef MODULE_PARM 710 #define MODULE_PARM(no,param) 711 #endif 712 #ifndef MODULE_PARM_DESC 713 #define MODULE_PARM_DESC(no,description) 708 714 #endif /* def MODULE */ 709 715 710 716 EOF 717 711 718 if (`grep KERNEL_VERSION "$package_root/$package_file"`) { 712 719 print OUTPUT << 'EOF'; … … 714 721 #ifndef KERNEL_VERSION 715 722 #define KERNEL_VERSION(a,b,c) (((a) << 16) | ((b) << 8) | (c)) 723 #endif 724 725 EOF 726 } 727 if (`grep EXPORT_NO_SYMBOLS "$package_root/$package_file"`) { 728 print OUTPUT << 'EOF'; 729 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 730 #define EXPORT_NO_SYMBOLS 731 #endif 732 733 EOF 734 } 735 if (`grep EXPORT_SYMBOL "$package_root/$package_file"`) { 736 print OUTPUT << 'EOF'; 737 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 738 #define EXPORT_SYMBOL(noexport) 716 739 #endif 717 740 … … 773 796 EOF 774 797 } 775 if (`grep 'ioremap\ |iounmap' "$package_root/$package_file"`) {798 if (`grep 'ioremap\\|iounmap' "$package_root/$package_file"`) { 776 799 print OUTPUT << 'EOF'; 777 800 /* I hope this is always correct, even for the PPC, but I really think so. … … 838 861 EOF 839 862 } 840 if (`grep 'PCI_DEVICE_ID_INTEL_82801AA_3\ |PCI_DEVICE_ID_INTEL_82801AB_3' "$package_root/$package_file"`) {863 if (`grep 'PCI_DEVICE_ID_INTEL_82801AA_3\\|PCI_DEVICE_ID_INTEL_82801AB_3' "$package_root/$package_file"`) { 841 864 print OUTPUT << 'EOF'; 842 865 #ifndef PCI_DEVICE_ID_INTEL_82801AA_3
