i2c: add quirk checks to core
authorWolfram Sang <wsa@the-dreams.de>
Mon, 5 Jan 2015 22:45:59 +0000 (23:45 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 13 Mar 2015 14:10:44 +0000 (15:10 +0100)
commitb7f625840267b18ef1011cba0085bb7e237d76f7
treeabc1b0d0ed98c147c6a0bc60f3fd30ed89ec3c73
parent2187f03a9576c4fb8342deed912b5ba6fcf98cba
i2c: add quirk checks to core

Let the core do the checks if HW quirks prevent a transfer. Saves code
from drivers and adds consistency.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Tested-by: Ray Jui <rjui@broadcom.com>
Tested-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Tested-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Tested-By: Ludovic Desroches <ludovic.desroches@atmel.com>
drivers/i2c/i2c-core.c