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)
commitc9dffc971957e5fd18d64aa17a95e8d82a59d273
tree287136ba55d66eeca44f3d7996ccc5544b8a0b30
parent0705e25cd05a9772d1ae8de8debd3b424b03b59d
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