Changeset 21

Show
Ignore:
Timestamp:
12/02/98 16:11:18 (16 years ago)
Author:
frodo
Message:

Cleaned up the i2c files

* 'cvs admin -ko i2c' should disable all RCS keyword substitutions from now

on

* Put all EXPORT stuff between #ifdef LM_SENSORS #endif statements.

Location:
lm-sensors/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r16 r21  
    8484# CFLAGS is to create in-kernel object files (modules); EXCFLAGS is to create 
    8585# non-kernel object files (which are linked into executables). 
    86 CFLAGS := -D__KERNEL__ -DMODULE -I. -Ii2c -O2 -fomit-frame-pointer 
    87 EXCFLAGS := -I. -O2 -Ii2c 
     86CFLAGS := -D__KERNEL__ -DMODULE -I. -Ii2c -O2 -fomit-frame-pointer -DLM_SENSORS 
     87EXCFLAGS := -I. -O2 -Ii2c -D LM_SENSORS 
    8888 
    8989ifeq ($(DEBUG),1) 
  • lm-sensors/trunk/i2c/algo-bit.c

    r8 r21  
    1818    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                */ 
    1919/* ------------------------------------------------------------------------- */ 
    20 static char alg_rcsid[] = "$Id: algo-bit.c,v 1.2 1998/11/03 03:48:44 phil Exp $"; 
     20static char alg_rcsid[] = "$Id: algo-bit.c,v 1.7 1998/09/28 06:45:38 i2c Exp i2c $"; 
    2121 
    2222#include <linux/kernel.h> 
     
    640640 
    641641 
     642#ifndef LM_SENSORS 
     643EXPORT_SYMBOL(i2c_bit_add_bus); 
     644EXPORT_SYMBOL(i2c_bit_del_bus); 
     645#endif 
     646 
     647 
    642648int init_module(void)  
    643649{ 
     
    650656} 
    651657#endif 
     658 
     659 
     660 
     661 
     662 
     663 
     664 
     665 
     666 
     667 
  • lm-sensors/trunk/i2c/bit-lp.c

    r8 r21  
    1818    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                */ 
    1919/* ------------------------------------------------------------------------- */ 
    20 static char rcsid[] = "$Id: bit-lp.c,v 1.1 1998/11/02 20:29:27 frodo Exp $"; 
     20static char rcsid[] = "$Id: bit-lp.c,v 1.5 1998/09/28 06:45:38 i2c Exp i2c $"; 
    2121/* ------------------------------------------------------------------------- */ 
    2222 
     
    152152MODULE_PARM(base, "i"); 
    153153 
     154#ifndef LM_SENSORS 
     155EXPORT_NO_SYMBOLS; 
     156#endif 
     157 
    154158int init_module(void)  
    155159{ 
  • lm-sensors/trunk/i2c/i2c-core.c

    r20 r21  
    1818    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                */ 
    1919/* ------------------------------------------------------------------------- */ 
    20 #define RCSID "$Id: i2c-core.c,v 1.5 1998/12/01 21:11:32 frodo Exp $" 
     20#define RCSID "$Id: i2c.c,v 1.7 1998/09/28 06:45:38 i2c Exp i2c $" 
    2121/* ------------------------------------------------------------------------- */ 
    2222 
     
    174174                         * must be deleted, as this would cause invalid states. 
    175175                         */ 
     176                        /* i2c_detach_client(client); */ 
    176177                        client->driver->detach_client(client); 
    177178        } 
     
    249250                                DEB2(printk("i2c:   detaching client %s:\n", 
    250251                                        client->name)); 
    251                                 /* i2c_detach_client(client); */ 
     252                                /*i2c_detach_client(client);*/ 
    252253                                driver->detach_client(client); 
    253254                        } 
     
    446447 
    447448 
     449 
    448450#ifdef MODULE 
    449451MODULE_AUTHOR("Simon G. Vogl <simon@tk.uni-linz.ac.at>"); 
     
    452454MODULE_PARM_DESC(i2c_debug,"debug level"); 
    453455 
     456#ifndef LM_SENSORS 
     457EXPORT_SYMBOL(i2c_add_algorithm); 
     458EXPORT_SYMBOL(i2c_del_algorithm); 
     459EXPORT_SYMBOL(i2c_add_adapter); 
     460EXPORT_SYMBOL(i2c_del_adapter); 
     461EXPORT_SYMBOL(i2c_add_driver); 
     462EXPORT_SYMBOL(i2c_del_driver); 
     463EXPORT_SYMBOL(i2c_attach_client); 
     464EXPORT_SYMBOL(i2c_detach_client); 
     465 
     466EXPORT_SYMBOL(i2c_master_send); 
     467EXPORT_SYMBOL(i2c_master_recv); 
     468EXPORT_SYMBOL(i2c_control); 
     469EXPORT_SYMBOL(i2c_transfer); 
     470#endif 
     471 
     472 
    454473int init_module(void)  
    455474{ 
  • lm-sensors/trunk/i2c/i2c-dev.c

    r8 r21  
    1818    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                */ 
    1919/* ------------------------------------------------------------------------- */ 
    20 #define RCSID "$Id: i2c-dev.c,v 1.1 1998/11/02 20:29:27 frodo Exp $" 
     20#define RCSID "$Id: i2c-dev.c,v 1.6 1998/09/28 06:45:38 i2c Exp i2c $" 
    2121/* ------------------------------------------------------------------------- */ 
    2222 
     
    338338MODULE_DESCRIPTION("I2C-Bus character device interface"); 
    339339 
     340#ifndef LM_SENSORS 
     341EXPORT_NO_SYMBOLS; 
     342#endif 
     343 
    340344int init_module(void)  
    341345{