]> git.baikalelectronics.ru Git - uboot.git/commit
w1: replace dt detection by automatic detection
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 4 May 2021 17:31:26 +0000 (19:31 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 13 May 2021 17:09:09 +0000 (13:09 -0400)
commit36aecde4f9b157d566e87a8f7a8aa48ac38a9773
tree287136ba55d66eeca44f3d7996ccc5544b8a0b30
parent330799255b258bd93fd4a61a1f8f892906ef7eec
w1: replace dt detection by automatic detection

This patch changes the functioning of the detection of w1 devices.
The old way was a comparison between detected w1 and the ones described in
the device tree. Now it will just look for the driver matching the family
id of the w1 detected.

The patch is inspired from Maxime Ripard code.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
drivers/w1-eeprom/ds24xxx.c
drivers/w1-eeprom/ds2502.c
drivers/w1-eeprom/w1-eeprom-uclass.c
drivers/w1/w1-uclass.c
include/w1-eeprom.h
include/w1.h