From 8193486f363ec7a089b6889ae9be1b69b00bed9a Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Sun, 13 Dec 1998 16:52:15 +0000 Subject: [PATCH] Another very, very small bug removed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@75 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm78.c | 4 ++-- src/lm78.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/chips/lm78.c b/kernel/chips/lm78.c index e91d31be..ce36d32a 100644 --- a/kernel/chips/lm78.c +++ b/kernel/chips/lm78.c @@ -225,7 +225,7 @@ static struct i2c_client *lm78_list[MAX_LM78_NR]; /* The driver. I choose to use type i2c_driver, as at is identical to both smbus_driver and isa_driver, and clients could be of either kind */ static struct i2c_driver lm78_driver = { - /* name */ "LM78 sensor chip driver", + /* name */ "LM78(-J) and LM79 sensor driver", /* id */ I2C_DRIVERID_LM78, /* flags */ DF_NOTIFY, /* attach_adapter */ &lm78_attach_adapter, @@ -463,7 +463,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter) type = lm78j; type_name = "lm78-j"; client_name = "LM78-J chip"; - } else if (err == 0x80) { + } else if (err == 0xc0) { type = lm79; type_name = "lm79"; client_name = "LM79 chip"; diff --git a/src/lm78.c b/src/lm78.c index e91d31be..ce36d32a 100644 --- a/src/lm78.c +++ b/src/lm78.c @@ -225,7 +225,7 @@ static struct i2c_client *lm78_list[MAX_LM78_NR]; /* The driver. I choose to use type i2c_driver, as at is identical to both smbus_driver and isa_driver, and clients could be of either kind */ static struct i2c_driver lm78_driver = { - /* name */ "LM78 sensor chip driver", + /* name */ "LM78(-J) and LM79 sensor driver", /* id */ I2C_DRIVERID_LM78, /* flags */ DF_NOTIFY, /* attach_adapter */ &lm78_attach_adapter, @@ -463,7 +463,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter) type = lm78j; type_name = "lm78-j"; client_name = "LM78-J chip"; - } else if (err == 0x80) { + } else if (err == 0xc0) { type = lm79; type_name = "lm79"; client_name = "LM79 chip";