Changeset 16

Show
Ignore:
Timestamp:
11/27/98 23:02:09 (10 years ago)
Author:
frodo
Message:

i2c-proc now creates complete /proc/bus/i2c

* i2c-bus is renamed to i2c-proc
* small patch in i2c-core.c (see correspondence with Simon Vogl)
* sensors.h contains i2c constants
* It seems lm78.[ch] was not yet committed?!?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/Makefile

    r11 r16  
    8787EXCFLAGS := -I. -O2 -Ii2c 
    8888 
     89ifeq ($(DEBUG),1) 
     90CFLAGS += -DDEBUG 
     91EXCFLAGS += -DDEBUG 
     92endif 
     93 
    8994ifeq ($(SMP),1) 
    9095CFLAGS += -D__SMP__ 
  • lm-sensors/trunk/i2c/MODIFICATIONS

    r8 r16  
    33of these changes are important; you can still use a self-compiled version 
    44of the i2c code and not compile the version in here. 
     5 
     6! Changes marked with an exclamation mark *are* important, and *must* 
     7  be applied! If there are changes like this in this list, you *must* 
     8  use our version of the i2c module! 
     9 
     10Here come the changes: 
    511 
    612* rscid declarations are changed 
     
    3238  Everywhere, remakeable files are removed, to keep the source distribution 
    3339  small and lean. 
     40 
     41! i2c-core: i2c_del_adapter() change 
     42  Replaced 
     43    i2c_detach_client(client); 
     44  with: 
     45    client->driver->detach_client(client); 
  • lm-sensors/trunk/i2c/i2c-core.c

    r8 r16  
    1818    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                */ 
    1919/* ------------------------------------------------------------------------- */ 
    20 #define RCSID "$Id: i2c-core.c,v 1.2 1998/11/03 03:48:44 phil Exp $" 
     20#define RCSID "$Id: i2c-core.c,v 1.3 1998/11/19 03:07:18 frodo Exp $" 
    2121/* ------------------------------------------------------------------------- */ 
    2222 
     
    174174                         * must be deleted, as this would cause invalid states. 
    175175                         */ 
    176                         i2c_detach_client(client); 
     176                        client->driver->detach_client(client); 
    177177        } 
    178178        /* all done, now unregister */ 
     
    249249                                DEB2(printk("i2c:   detaching client %s:\n", 
    250250                                        client->name)); 
    251                                 /*i2c_detach_client(client);*/ 
     251                                i2c_detach_client(client); 
    252252                                driver->detach_client(client); 
    253253                        } 
  • lm-sensors/trunk/kernel/Module.mk

    r15 r16  
    2424# defined value verbatim into the command-list of rules... 
    2525SRCTARGETS := $(MODULE_DIR)/smbus.o $(MODULE_DIR)/piix4.o $(MODULE_DIR)/isa.o \ 
    26               $(MODULE_DIR)/lm78.o $(MODULE_DIR)/i2c-bus.o 
     26              $(MODULE_DIR)/lm78.o $(MODULE_DIR)/i2c-proc.o 
    2727 
    2828# Include all dependency files 
  • lm-sensors/trunk/src/Module.mk

    r15 r16  
    2424# defined value verbatim into the command-list of rules... 
    2525SRCTARGETS := $(MODULE_DIR)/smbus.o $(MODULE_DIR)/piix4.o $(MODULE_DIR)/isa.o \ 
    26               $(MODULE_DIR)/lm78.o $(MODULE_DIR)/i2c-bus.o 
     26              $(MODULE_DIR)/lm78.o $(MODULE_DIR)/i2c-proc.o 
    2727 
    2828# Include all dependency files