/* cx_device_match - Find cx_device in the id table. @ids: id table from driver @cx_device: part/mfg id for the device  */
static const struct cx_device_id* cx_device_match(const struct cx_device_id *ids, struct cx_dev *cx_device)
/* cx_device_match - Find cx_device in the id table. @ids: id table from driver @cx_device: part/mfg id for the device  */
static const struct cx_device_id* cx_device_match(const struct cx_device_id *ids, struct cx_dev *cx_device)
{
	while (ids->part_num && ids->mfg_num) {
		if (ids->part_num == cx_device->cx_id.part_num &&
		    ids->mfg_num == cx_device->cx_id.mfg_num)
			return ids;
		ids++;
	}
	return NULL;
}