i2c: designware: add common functions for locking
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 23 Aug 2016 22:18:54 +0000 (19:18 -0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:14 +0000 (00:42 +0200)
commit8c5660bb299a9350857e1e5800b7db8214e3f75c
tree2991131385909f75777aa0258596b20654adfcca
parent2702ea7dbec55db62fa3016c7275fea7b508033f
i2c: designware: add common functions for locking

These are used in 2 places and will be needed in more.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Christian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c