jedec_ts: fix slave address check

The mask should cover all bits that can not vary.

MFC after:	3 days
This commit is contained in:
Andriy Gapon 2017-02-21 12:24:31 +00:00
parent 4bf41040fd
commit e3a1f14881

View File

@ -104,7 +104,7 @@ ts_attach(device_t dev)
uint8_t addr; uint8_t addr;
addr = smbus_get_addr(dev); addr = smbus_get_addr(dev);
if ((addr & 0x30) != 0x30) { if ((addr & 0xf0) != 0x30) {
/* Up to 8 slave devices starting at 0x30. */ /* Up to 8 slave devices starting at 0x30. */
return (ENXIO); return (ENXIO);
} }