From 2f12c68ed100c55cc6ae37b231dbf21cf73e3e55 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 30 Oct 2005 11:52:13 +0000 Subject: [PATCH] Misc fixes: * The IT8705F and SiS950 have no SMBus interface. * Fix a parenthesis misplacement. * it87_detect should be static. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3154 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/it87.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kernel/chips/it87.c b/kernel/chips/it87.c index 536b4803..97f04c6d 100644 --- a/kernel/chips/it87.c +++ b/kernel/chips/it87.c @@ -2,9 +2,9 @@ it87.c - Part of lm_sensors, Linux kernel modules for hardware monitoring. - Supports: IT8705F Super I/O chip w/LPC interface & SMBus + Supports: IT8705F Super I/O chip w/LPC interface IT8712F Super I/O chip w/LPC interface & SMBus - Sis950 A clone of the IT8705F + SiS950 A clone of the IT8705F Copyright (c) 2001 Chris Gauthron Largely inspired by lm78.c of the same package @@ -434,7 +434,7 @@ static int __init it87_find(int *address) goto exit; superio_select(); - if (!(superio_inb(IT87_ACT_REG)) & 0x01) { + if (!(superio_inb(IT87_ACT_REG) & 0x01)) { printk(KERN_INFO "it87: Device not activated, skipping\n"); goto exit; } @@ -455,8 +455,8 @@ exit: } /* This function is called by i2c_detect */ -int it87_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int it87_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client; @@ -1120,7 +1120,6 @@ static void __exit sm_it87_exit(void) } - MODULE_AUTHOR("Chris Gauthron "); MODULE_DESCRIPTION("IT8705F, IT8712F, Sis950 driver"); MODULE_PARM(update_vbat, "i");