All of lore.kernel.org
 help / color / mirror / Atom feed
From: aurelien@aurel32.net (Aurelien Jarno)
To: lm-sensors@vger.kernel.org
Subject: Small fix in the PCF8591 driver
Date: Thu, 19 May 2005 06:24:47 +0000	[thread overview]
Message-ID: <20040314194215.GA12324@pc.aurel32.private> (raw)

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;

             reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 Aurelien Jarno [this message]
2005-05-19  6:24 ` Small fix in the PCF8591 driver Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Aurelien Jarno
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040314194215.GA12324@pc.aurel32.private \
    --to=aurelien@aurel32.net \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.