Commit ee9173db authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Vinod Koul
parent e3f88cdb
......@@ -20,14 +20,12 @@
static const struct sdw_device_id *
sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv)
{
const struct sdw_device_id *id = drv->id_table;
const struct sdw_device_id *id;
while (id && id->mfg_id) {
for (id = drv->id_table; id && id->mfg_id; id++)
if (slave->id.mfg_id == id->mfg_id &&
slave->id.part_id == id->part_id)
return id;
id++;
}
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment