i2c: at91_i2c: remove the .probe_chip function
authorAlan Ott <alan@softiron.com>
Wed, 29 Nov 2017 03:25:24 +0000 (22:25 -0500)
committerHeiko Schocher <hs@denx.de>
Thu, 7 Dec 2017 08:29:19 +0000 (09:29 +0100)
commitcab8a27d80afbdcb7ba422c4c4f85130678373a9
tree33a083bed997bd2da2dd260f8febad8796fea732
parent0afbb0e1c01382f4bcd728ecbd4e49a928dbbccb
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 0bc8f640a4d7ed.

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>
drivers/i2c/at91_i2c.c