version 1.68, 2019/01/27 02:08:41 |
version 1.69, 2019/03/26 09:20:38 |
Line 719 iic_use_direct_match(const struct i2c_at |
|
Line 719 iic_use_direct_match(const struct i2c_at |
|
const struct device_compatible_entry *compats, |
const struct device_compatible_entry *compats, |
int *match_resultp) |
int *match_resultp) |
{ |
{ |
|
int res; |
|
|
KASSERT(match_resultp != NULL); |
KASSERT(match_resultp != NULL); |
|
|
Line 729 iic_use_direct_match(const struct i2c_at |
|
Line 730 iic_use_direct_match(const struct i2c_at |
|
} |
} |
|
|
if (ia->ia_ncompat > 0 && ia->ia_compat != NULL) { |
if (ia->ia_ncompat > 0 && ia->ia_compat != NULL) { |
*match_resultp = iic_compatible_match(ia, compats, NULL); |
res = iic_compatible_match(ia, compats, NULL); |
return true; |
if (res) { |
|
*match_resultp = res; |
|
return true; |
|
} |
} |
} |
|
|
return false; |
return false; |