* Small fix in the PCF8591 driver
@ 2005-05-19 6:24 Aurelien Jarno
2005-05-19 6:24 ` Aurelien Jarno
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Aurelien Jarno @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
Hello,
Please find attached a patch to fix a small bug in pcf8591.c: the
function i2c_func_smbus_write_byte_data() was used without checking for
it before.
Cheers,
Aurelien
--
.''`. Aurelien Jarno GPG: 1024D/F1BCDB73
: :' : Debian GNU/Linux developer | Electrical Engineering Student
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
Index: kernel/chips/pcf8591.c
=================================RCS file: /home/cvs/lm_sensors2/kernel/chips/pcf8591.c,v
retrieving revision 1.6
diff -u -1 -b -p -r1.6 pcf8591.c
--- kernel/chips/pcf8591.c 21 Jan 2003 20:01:26 -0000 1.6
+++ kernel/chips/pcf8591.c 14 Mar 2004 19:45:51 -0000
@@ -181,3 +181,4 @@ int pcf8591_detect(struct i2c_adapter *a
- if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE))
+ if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE)
+ | I2C_FUNC_SMBUS_BYTE_DATA)
goto ERROR0;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Small fix in the PCF8591 driver
2005-05-19 6:24 Small fix in the PCF8591 driver Aurelien Jarno
2005-05-19 6:24 ` Aurelien Jarno
@ 2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
> Please find attached a patch to fix a small bug in pcf8591.c: the
> function i2c_func_smbus_write_byte_data() was used without checking
> for it before.
You check for I2C_FUNC_SMBUS_BYTE_DATA while I believe you really only
need I2C_FUNC_SMBUS_WRITE_BYTE_DATA. Or am I missing something?
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Small fix in the PCF8591 driver
2005-05-19 6:24 Small fix in the PCF8591 driver Aurelien Jarno
@ 2005-05-19 6:24 ` Aurelien Jarno
2005-05-19 6:24 ` Jean Delvare
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Aurelien Jarno @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
On Sun, Mar 14, 2004 at 09:30:52PM +0100, Jean Delvare wrote:
> > Please find attached a patch to fix a small bug in pcf8591.c: the
> > function i2c_func_smbus_write_byte_data() was used without checking
> > for it before.
>
> You check for I2C_FUNC_SMBUS_BYTE_DATA while I believe you really only
> need I2C_FUNC_SMBUS_WRITE_BYTE_DATA. Or am I missing something?
That's right. Please find a new patch attached.
--
.''`. Aurelien Jarno GPG: 1024D/F1BCDB73
: :' : Debian GNU/Linux developer | Electrical Engineering Student
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
Index: kernel/chips/pcf8591.c
=================================RCS file: /home/cvs/lm_sensors2/kernel/chips/pcf8591.c,v
retrieving revision 1.6
diff -u -1 -b -p -r1.6 pcf8591.c
--- kernel/chips/pcf8591.c 21 Jan 2003 20:01:26 -0000 1.6
+++ kernel/chips/pcf8591.c 14 Mar 2004 22:26:19 -0000
@@ -181,3 +181,4 @@ int pcf8591_detect(struct i2c_adapter *a
- if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE))
+ if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE)
+ | I2C_FUNC_SMBUS_WRITE_BYTE_DATA)
goto ERROR0;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Small fix in the PCF8591 driver
2005-05-19 6:24 Small fix in the PCF8591 driver Aurelien Jarno
2005-05-19 6:24 ` Aurelien Jarno
2005-05-19 6:24 ` Jean Delvare
@ 2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Aurelien Jarno
2005-05-19 6:24 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
> That's right. Please find a new patch attached.
Your patch is bogus. Please check it.
Thanks.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Small fix in the PCF8591 driver
2005-05-19 6:24 Small fix in the PCF8591 driver Aurelien Jarno
` (2 preceding siblings ...)
2005-05-19 6:24 ` Jean Delvare
@ 2005-05-19 6:24 ` Aurelien Jarno
2005-05-19 6:24 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Aurelien Jarno @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
On Mon, Mar 15, 2004 at 10:00:56PM +0100, Jean Delvare wrote:
> > That's right. Please find a new patch attached.
>
> Your patch is bogus. Please check it.
Oops, sorry. I am not using a 2.6 kernel anymore, and so I didn't tried
to build lm-sensors to test my fix.
I hope this patch is the good one.
Cheers,
Aurelien
--
.''`. Aurelien Jarno GPG: 1024D/F1BCDB73
: :' : Debian GNU/Linux developer | Electrical Engineering Student
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
Index: kernel/chips/pcf8591.c
=================================RCS file: /home/cvs/lm_sensors2/kernel/chips/pcf8591.c,v
retrieving revision 1.6
diff -u -1 -b -p -r1.6 pcf8591.c
--- kernel/chips/pcf8591.c 21 Jan 2003 20:01:26 -0000 1.6
+++ kernel/chips/pcf8591.c 16 Mar 2004 12:31:03 -0000
@@ -181,3 +181,4 @@ int pcf8591_detect(struct i2c_adapter *a
- if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE))
+ if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE
+ | I2C_FUNC_SMBUS_WRITE_BYTE_DATA))
goto ERROR0;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Small fix in the PCF8591 driver
2005-05-19 6:24 Small fix in the PCF8591 driver Aurelien Jarno
` (3 preceding siblings ...)
2005-05-19 6:24 ` Aurelien Jarno
@ 2005-05-19 6:24 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
> > Your patch is bogus. Please check it.
> Oops, sorry. I am not using a 2.6 kernel anymore, and so I didn't
> tried to build lm-sensors to test my fix.
I guess you really mean "2.4 kernel".
> I hope this patch is the good one.
Yes, looks good. Applied.
Thanks.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-05-19 6:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:24 Small fix in the PCF8591 driver Aurelien Jarno
2005-05-19 6:24 ` Aurelien Jarno
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Aurelien Jarno
2005-05-19 6:24 ` Jean Delvare
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.