1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 17:52:07 +02:00
Files
u-boot-megous/drivers/i2c
Alan Ott cab8a27d80 i2c: at91_i2c: remove the .probe_chip function
The .probe_chip function is supposed to probe an i2c device on the bus to
determine whether a device is answering to a particular address.
at91_i2c_probe_chip() did not do anything resembling this and always
returned 0.

It looks as though at91_i2c_probe_chip() was intended to be a .probe
function for the controller, as it was copied-and-pasted to become
at91_i2c_probe() in 0bc8f640a4.

Removing the at91_i2c_probe_chip() function makes the higher layer
(i2c_probe_chip()) try a zero-length read transfer to test for the
presence of a device instead, which does work.

Signed-off-by: Alan Ott <alan@softiron.com>
Acked-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2017-12-07 09:29:19 +01:00
..
2017-06-01 07:03:01 -06:00
2017-05-08 11:57:34 -04:00
2017-06-01 07:03:01 -06:00
2017-11-30 02:32:34 +01:00
2017-12-07 09:28:42 +01:00
2017-06-01 07:03:01 -06:00
2017-06-01 07:03:01 -06:00
2017-11-30 02:32:34 +01:00
2017-07-23 09:24:47 -04:00