i2c: qup: Change qup_wait_writeready function to use for all timeouts
authorSricharan R <sricharan@codeaurora.org>
Tue, 19 Jan 2016 10:02:41 +0000 (15:32 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 12 Feb 2016 18:29:39 +0000 (19:29 +0100)
commitc4f0c5fb383adb9e703d7de2bd45d3604e572528
treeb60010fe68916bdefac4be743ccdc57430e1197b
parent50a5ba876908147b36441c754e835588143c6b54
i2c: qup: Change qup_wait_writeready function to use for all timeouts

qup_wait_writeready waits only on a output fifo empty event.
Change the same function to accept the event and data length
to wait as parameters. This way the same function can be used for
timeouts in other places as well.

Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Tested-by: Archit Taneja <architt@codeaurora.org>
Tested-by: Telkar Nagender <ntelkar@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c