commit | 38793e236afca2fb40c20a510c47ed6fc7d0c969 | [log] [tgz] |
---|---|---|
author | Baruch Siach <baruch@tkos.co.il> | Mon Aug 05 09:03:30 2019 +0300 |
committer | Heiko Schocher <hs@denx.de> | Tue Aug 27 06:26:49 2019 +0200 |
tree | 93c4681cd9a1d10264fc6d1cf5e917b26259578b | |
parent | 0fef1436d0a4b94f7af596e32d2ed3bdc3f7db4a [diff] |
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'