phy-isp1301.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) phy-isp1301.c (418e3ea157efb0eb2c6dd412a8d5f052477c7f5a)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NXP ISP1301 USB transceiver driver
4 *
5 * Copyright (C) 2012 Roland Stigge
6 *
7 * Author: Roland Stigge <stigge@antcom.de>
8 */

--- 128 unchanged lines hidden (view full) ---

137 },
138 .probe = isp1301_probe,
139 .remove = isp1301_remove,
140 .id_table = isp1301_id,
141};
142
143module_i2c_driver(isp1301_driver);
144
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NXP ISP1301 USB transceiver driver
4 *
5 * Copyright (C) 2012 Roland Stigge
6 *
7 * Author: Roland Stigge <stigge@antcom.de>
8 */

--- 128 unchanged lines hidden (view full) ---

137 },
138 .probe = isp1301_probe,
139 .remove = isp1301_remove,
140 .id_table = isp1301_id,
141};
142
143module_i2c_driver(isp1301_driver);
144
145static int match(struct device *dev, void *data)
145static int match(struct device *dev, const void *data)
146{
146{
147 struct device_node *node = (struct device_node *)data;
147 const struct device_node *node = (const struct device_node *)data;
148 return (dev->of_node == node) &&
149 (dev->driver == &isp1301_driver.driver);
150}
151
152struct i2c_client *isp1301_get_client(struct device_node *node)
153{
154 if (node) { /* reference of ISP1301 I2C node via DT */
155 struct device *dev = bus_find_device(&i2c_bus_type, NULL,

--- 13 unchanged lines hidden ---
148 return (dev->of_node == node) &&
149 (dev->driver == &isp1301_driver.driver);
150}
151
152struct i2c_client *isp1301_get_client(struct device_node *node)
153{
154 if (node) { /* reference of ISP1301 I2C node via DT */
155 struct device *dev = bus_find_device(&i2c_bus_type, NULL,

--- 13 unchanged lines hidden ---