diff options
author | avg <avg@FreeBSD.org> | 2017-02-27 17:24:01 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-02-27 17:24:01 +0000 |
commit | febcb71ed9b72df6353f2ed7929020c73f5df846 (patch) | |
tree | 4d8f6aa483ec26d90c91d6fb60adfbae29919c74 | |
parent | b521a9020c9600e82b6791dd6024bfff721d72a8 (diff) | |
download | FreeBSD-src-febcb71ed9b72df6353f2ed7929020c73f5df846.zip FreeBSD-src-febcb71ed9b72df6353f2ed7929020c73f5df846.tar.gz |
MFC r314037: jedec_ts: fix slave address check
-rw-r--r-- | sys/dev/jedec_ts/jedec_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/jedec_ts/jedec_ts.c b/sys/dev/jedec_ts/jedec_ts.c index b65ef78..d1e9596 100644 --- a/sys/dev/jedec_ts/jedec_ts.c +++ b/sys/dev/jedec_ts/jedec_ts.c @@ -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); } |