/* Used by a driver to check whether a TC device present in the system is in its list of supported devices. Returns 1 if there is a match or 0 otherwise.  */
static int tc_bus_match(struct device *dev, struct device_driver *drv)
/* Used by a driver to check whether a TC device present in the system is in its list of supported devices. Returns 1 if there is a match or 0 otherwise.  */
static int tc_bus_match(struct device *dev, struct device_driver *drv)
{
	struct tc_dev *tdev = to_tc_dev(dev);
	struct tc_driver *tdrv = to_tc_driver(drv);
	const struct tc_device_id *id;
	id = tc_match_device(tdrv, tdev);
	if (id)
		return 1;
	return 0;
}