svn commit: r314037 - head/sys/dev/jedec_ts
Andriy Gapon
avg at FreeBSD.org
Tue Feb 21 12:24:32 UTC 2017
Author: avg
Date: Tue Feb 21 12:24:31 2017
New Revision: 314037
URL: https://svnweb.freebsd.org/changeset/base/314037
Log:
jedec_ts: fix slave address check
The mask should cover all bits that can not vary.
MFC after: 3 days
Modified:
head/sys/dev/jedec_ts/jedec_ts.c
Modified: head/sys/dev/jedec_ts/jedec_ts.c
==============================================================================
--- head/sys/dev/jedec_ts/jedec_ts.c Tue Feb 21 09:37:33 2017 (r314036)
+++ head/sys/dev/jedec_ts/jedec_ts.c Tue Feb 21 12:24:31 2017 (r314037)
@@ -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);
}
More information about the svn-src-all
mailing list