i2c: rk3x: fix 0 length write transfers
i2c: rk3x: fix 0 length write transfers

i2cdetect -q was broken (everything was a false positive, and no transfers were
actually being sent over i2c). The way it works is by sending a 0 length write
request and checking for NACK. This patch fixes the 0 length writes and actually
sends them.

Reported-by: Doug Anderson <49983c4a76b998672954ed5edf4a62db4a336502@chromium.org>
Signed-off-by: Alexandru M Stan <1784cbba6d7675b1eba55eaefe41c7672ad9da3b@chromium.org>
Tested-by: Doug Anderson <49983c4a76b998672954ed5edf4a62db4a336502@chromium.org>
Tested-by: Max Schwarz <76b9f0f67f1148bdd76344491471ffc1a0904b3d@online.de>
Signed-off-by: Wolfram Sang <fd4ce474653598159cad06f3c83387a05cd53a44@the-dreams.de>
Cc: 4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs