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:
parent
4bf41040fd
commit
e3a1f14881
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user