Changeset 5215

Show
Ignore:
Timestamp:
05/01/08 12:21:30 (4 months ago)
Author:
khali
Message:

Minor cleanups backported from Linux 2.6:
* Remove a needless include.
* Remove a legacy comment in piix4_access.
* Minor optimization in piix4_access.

Files:

Legend:

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

    r5213 r5215  
    55  Library: Don't choke on unrecognized devices, part 2 
    66  Module i2c-i801: Drop broken I2C block read support 
     7  Module i2c-piix4: Minor cleanups (2.6 backport) 
    78  Program sensors-detect: New device ID for the SMSC SCH5317 
    89                          Add SMSC SCH5127 detection 
  • lm-sensors/trunk/kernel/busses/i2c-piix4.c

    r4739 r5215  
    3939#include <linux/i2c.h> 
    4040#include <linux/init.h> 
    41 #include <linux/apm_bios.h> 
    4241#include <asm/io.h> 
    4342#include "version.h" 
     
    380379 
    381380        switch (size) { 
    382         case PIIX4_BYTE:        /* Where is the result put? I assume here it is in 
    383                                    SMBHSTDAT0 but it might just as well be in the 
    384                                    SMBHSTCMD. No clue in the docs */ 
    385  
    386                 data->byte = inb_p(SMBHSTDAT0); 
    387                 break; 
     381        case PIIX4_BYTE: 
    388382        case PIIX4_BYTE_DATA: 
    389383                data->byte = inb_p(SMBHSTDAT0);