summaryrefslogtreecommitdiff
path: root/drivers/w1-eeprom/w1-eeprom-uclass.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-13 13:09:14 -0400
committerTom Rini <trini@konsulko.com>2021-05-13 13:09:14 -0400
commit530c8d4af2e18c6142ab7cac6f11dd92c02b2bc9 (patch)
treee8b15ca22922539dc4500cc85679c537722ccc38 /drivers/w1-eeprom/w1-eeprom-uclass.c
parentea184cbff99ea1d82dcf94c95afe054e95da5069 (diff)
parent1569847e7c7b6cba6a04b5f5a5e7aa9caeeef41b (diff)
Merge branch '2021-05-13-extension-board-detection-and-DT-overlay-application'
- Improve support for various forms of extension boards and add DT overlay application support.
Diffstat (limited to 'drivers/w1-eeprom/w1-eeprom-uclass.c')
-rw-r--r--drivers/w1-eeprom/w1-eeprom-uclass.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/w1-eeprom/w1-eeprom-uclass.c b/drivers/w1-eeprom/w1-eeprom-uclass.c
index 97a9d43b03a..7a02af3dd6d 100644
--- a/drivers/w1-eeprom/w1-eeprom-uclass.c
+++ b/drivers/w1-eeprom/w1-eeprom-uclass.c
@@ -37,37 +37,6 @@ int w1_eeprom_read_buf(struct udevice *dev, unsigned int offset,
return ops->read_buf(dev, offset, buf, count);
}
-int w1_eeprom_register_new_device(u64 id)
-{
- u8 family = id & 0xff;
- int ret;
- struct udevice *dev;
-
- for (ret = uclass_first_device(UCLASS_W1_EEPROM, &dev);
- !ret && dev;
- uclass_next_device(&dev)) {
- if (ret || !dev) {
- debug("cannot find w1 eeprom dev\n");
- return ret;
- }
- if (dev_get_driver_data(dev) == family) {
- struct w1_device *w1;
-
- w1 = dev_get_parent_plat(dev);
- if (w1->id) /* device already in use */
- continue;
- w1->id = id;
- debug("%s: Match found: %s:%s %llx\n", __func__,
- dev->name, dev->driver->name, id);
- return 0;
- }
- }
-
- debug("%s: No matches found: error %d\n", __func__, ret);
-
- return ret;
-}
-
int w1_eeprom_get_id(struct udevice *dev, u64 *id)
{
struct w1_device *w1 = dev_get_parent_plat(dev);