Author: avg
Date: Mon Feb 27 17:23:42 2017
New Revision: 314351
URL: https://svnweb.freebsd.org/changeset/base/314351

Log:
  MFC r314037: jedec_ts: fix slave address check

Modified:
  stable/10/sys/dev/jedec_ts/jedec_ts.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/jedec_ts/jedec_ts.c
==============================================================================
--- stable/10/sys/dev/jedec_ts/jedec_ts.c       Mon Feb 27 17:20:49 2017        
(r314350)
+++ stable/10/sys/dev/jedec_ts/jedec_ts.c       Mon Feb 27 17:23:42 2017        
(r314351)
@@ -104,7 +104,7 @@ ts_attach(device_t dev)
        uint8_t addr;
 
        addr = smbus_get_addr(dev);
-       if ((addr & 0x30) != 0x30) {
+       if ((addr & 0xf0) != 0x30) {
                /* Up to 8 slave devices starting at 0x30. */
                return (ENXIO);
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to