mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
Minor cleanups backported from Linux 2.6:
* Remove a needless include. * Remove a legacy comment in piix4_access. * Minor optimization in piix4_access. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5215 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
918279c5e9
commit
135fa09cb0
2 files changed
+2
-7
No files matched your search
@@ -4,6 +4,7 @@ lm_sensors CHANGES file
|
||||
SVN-HEAD
|
||||
Library: Don't choke on unrecognized devices, part 2
|
||||
Module i2c-i801: Drop broken I2C block read support
|
||||
Module i2c-piix4: Minor cleanups (2.6 backport)
|
||||
Program sensors-detect: New device ID for the SMSC SCH5317
|
||||
Add SMSC SCH5127 detection
|
||||
Add National Semiconductor LM64 detection
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/apm_bios.h>
|
||||
#include <asm/io.h>
|
||||
#include "version.h"
|
||||
#include "sensors_compat.h"
|
||||
@@ -379,12 +378,7 @@ s32 piix4_access(struct i2c_adapter * adap, u16 addr,
|
||||
|
||||
|
||||
switch (size) {
|
||||
case PIIX4_BYTE: /* Where is the result put? I assume here it is in
|
||||
SMBHSTDAT0 but it might just as well be in the
|
||||
SMBHSTCMD. No clue in the docs */
|
||||
|
||||
data->byte = inb_p(SMBHSTDAT0);
|
||||
break;
|
||||
case PIIX4_BYTE:
|
||||
case PIIX4_BYTE_DATA:
|
||||
data->byte = inb_p(SMBHSTDAT0);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user