Show
Ignore:
Timestamp:
07/18/99 16:01:33 (15 years ago)
Author:
frodo
Message:

Namespace and copyright clean-up

* All copyright headers now have the right filename in them
* Files without copyrights now have them
* All copyrights are now until 1999
* Copyright owners were not changed; files into which Kyösti or Frodo made

signifiant changes mention them now, though.

* External module symbols now all begin with i2c_ for all modules, except

some names which can't be changed (init_module and other module related
symbols).

* Header files define nothing which does not begin with i2c_ or I2C_.

That means some symbols have changed names!

The current files are completely namespace-clean. This will lessen the
chance of (future) clashes with other kernel symbols, especially if it
is patched into the kernel.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c-philips-par.c

    r3317 r3318  
    11/* ------------------------------------------------------------------------- */ 
    2 /* bit-lp.c i2c-hw access for philips style parallel port adapters           */ 
     2/* i2c-philips-par.c i2c-hw access for philips style parallel port adapters  */ 
    33/* ------------------------------------------------------------------------- */ 
    4 /*   Copyright (C) 1995-97 Simon G. Vogl 
     4/*   Copyright (C) 1995-99 Simon G. Vogl 
    55 
    66    This program is free software; you can redistribute it and/or modify 
     
    2020static char rcsid[] = "$Id$"; 
    2121   ------------------------------------------------------------------------- */ 
     22 
     23/* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi> and even 
     24   Frodo Looijaard <frodol@dds.nl> */ 
    2225 
    2326#include <linux/kernel.h> 
     
    7477/* ----- local functions ---------------------------------------------- */ 
    7578 
    76 void bit_lp_setscl(void *data, int state) 
     79static void bit_lp_setscl(void *data, int state) 
    7780{ 
    7881        /*be cautious about state of the control register -  
     
    8588} 
    8689 
    87 void bit_lp_setsda(void *data, int state) 
     90static void bit_lp_setsda(void *data, int state) 
    8891{ 
    8992        if (state) { 
     
    9497} 
    9598 
    96 int bit_lp_getscl(void *data) 
     99static int bit_lp_getscl(void *data) 
    97100{ 
    98101        return ( 0 != ( (inb(STAT)) & I2C_SCLIN ) ); 
    99102} 
    100103 
    101 int bit_lp_getsda(void *data) 
     104static int bit_lp_getsda(void *data) 
    102105{ 
    103106        return ( 0 != ( (inb(STAT)) & I2C_SDAIN ) ); 
    104107} 
    105108 
    106 int bit_lp_init(void) 
     109static int bit_lp_init(void) 
    107110{ 
    108111        if (check_region(base,(base == 0x3bc)? 3 : 8) < 0 ) { 
     
    118121} 
    119122 
    120 void bit_lp_exit(void) 
     123static void bit_lp_exit(void) 
    121124{ 
    122125        release_region( base , (base == 0x3bc)? 3 : 8 ); 
    123126} 
    124127 
    125 int bit_lp_reg(struct i2c_client *client) 
    126 { 
    127         return 0; 
    128 } 
    129  
    130 int bit_lp_unreg(struct i2c_client *client) 
    131 { 
    132         return 0; 
    133 } 
    134  
    135 static void bit_lp_inc_use(struct bit_adapter *adap) 
     128static int bit_lp_reg(struct i2c_client *client) 
     129{ 
     130        return 0; 
     131} 
     132 
     133static int bit_lp_unreg(struct i2c_client *client) 
     134{ 
     135        return 0; 
     136} 
     137 
     138static void bit_lp_inc_use(struct i2c_bit_adapter *adap) 
    136139{ 
    137140  MOD_INC_USE_COUNT; 
    138141} 
    139142 
    140 static void bit_lp_dec_use(struct bit_adapter *adap) 
     143static void bit_lp_dec_use(struct i2c_bit_adapter *adap) 
    141144{ 
    142145  MOD_DEC_USE_COUNT; 
     
    147150 * This is only done when more than one hardware adapter is supported. 
    148151 */ 
    149 struct bit_adapter bit_lp_ops = { 
     152static struct i2c_bit_adapter bit_lp_ops = { 
    150153        "Philips Parallel port adapter", 
    151         HW_B_LP, 
     154        I2C_HW_B_LP, 
    152155        NULL, 
    153156        bit_lp_setsda, 
     
    163166 
    164167 
    165 int __init bitlp_init(void) 
     168int __init i2c_bitlp_init(void) 
    166169{ 
    167170        if (base==0) { 
     
    196199int init_module(void)  
    197200{ 
    198         return bitlp_init(); 
     201        return i2c_bitlp_init(); 
    199202} 
    200203