Changeset 461

Show
Ignore:
Timestamp:
05/12/99 07:17:04 (14 years ago)
Author:
phil
Message:

(Phil) Some cleaning up and documentation.

Location:
lm-sensors/trunk
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r450 r461  
    5757# Uncomment the second line if you are a developer. This will enable many 
    5858# additional warnings at compile-time 
    59 WARN := 0 
    60 #WARN := 1 
     59#WARN := 0 
     60WARN := 1 
    6161 
    6262# Uncomment the second line if you want to get (loads of) debug information. 
  • lm-sensors/trunk/kernel/busses/i2c-voodoo3.c

    r457 r461  
    5353#endif 
    5454 
    55 /* insmod parameters */ 
    56  
    5755static int voodoo3_init(void); 
    5856static int voodoo3_cleanup(void); 
     
    7371static int v3_num; 
    7472 
    75 inline outlong(int off,unsigned int dat) 
     73inline void outlong(int off,unsigned int dat) 
    7674{ 
    7775        *((unsigned int*)(mem+off))=dat; 
     
    8482} 
    8583 
    86 inline out(void) 
     84inline void out(void) 
    8785{ 
    8886        outlong(0x78,state); 
  • lm-sensors/trunk/kernel/chips/bt869.c

    r460 r461  
    8787static void bt869_inc_use (struct i2c_client *client); 
    8888static void bt869_dec_use (struct i2c_client *client); 
    89 static u16 swap_bytes(u16 val); 
    9089static int bt869_read_value(struct i2c_client *client, u8 reg); 
    9190static int bt869_write_value(struct i2c_client *client, u8 reg, u16 value); 
     
    156155int bt869_detect(struct i2c_adapter *adapter, int address, int kind) 
    157156{ 
    158   int i,cur,conf,hyst,os; 
     157  int i,cur; 
    159158  struct i2c_client *new_client; 
    160159  struct bt869_data *data; 
     
    308307  MOD_DEC_USE_COUNT; 
    309308#endif 
    310 } 
    311  
    312 u16 swap_bytes(u16 val) 
    313 { 
    314   return (val >> 8) | (val << 8); 
    315309} 
    316310