]> git.baikalelectronics.ru Git - uboot.git/commit
misc: i2c_eeprom: verify that the chip is functional at probe()
authorBaruch Siach <baruch@tkos.co.il>
Mon, 5 Aug 2019 06:03:30 +0000 (09:03 +0300)
committerHeiko Schocher <hs@denx.de>
Tue, 27 Aug 2019 04:26:49 +0000 (06:26 +0200)
commit4d2ff46e466d9383449083fc6e509766ea58d9fc
tree93c4681cd9a1d10264fc6d1cf5e917b26259578b
parent6dfcedb8a1927c0812255621cad2b6460ffa1626
misc: i2c_eeprom: verify that the chip is functional at probe()

Read a single byte from EEPROM to verify that it is actually there.

This is equivalent to Linux kernel commit 00f0ea70d2b8 ("eeprom: at24:
check if the chip is functional in probe()").

Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
hs: fixed style check prefer kernel type 'u8' over 'uint8_t'
drivers/misc/i2c_eeprom.c