barebox/drivers/eeprom
Uwe Kleine-König 17f77702e5 eeprom: at24: make device name setup more robust
With two eeproms that have a different compatible string (in my case
"at,24c64" and "at,24c32") dev->id is 0 for both which results in a
failure to bind the device that is probed later.

So pick a name more intelligently: If there is an alias defined in the
device tree, use this one, otherwise pick a free index.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-05-31 08:57:46 +02:00
..
at24.c eeprom: at24: make device name setup more robust 2016-05-31 08:57:46 +02:00
at25.c eeprom: at25: check return value of devfs_create 2016-05-31 08:57:46 +02:00
Kconfig Cleanup Kconfig files 2012-12-08 12:22:12 +01:00
Makefile eeprom: add at24 support 2012-11-15 20:18:50 +01:00