i2c: add i2c_trylock_bus wrapper, use it
authorPeter Rosin <peda@axentia.se>
Wed, 29 Jun 2016 13:04:03 +0000 (15:04 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 16:02:14 +0000 (18:02 +0200)
commitfb79e09a74faf39fbeee975e0ead442b7b7f6aac
tree465679257bdac8b169b5e5d20b17aabbd9859aef
parent00f0ea70d2b82b7d7afeb1bdedc9169eb8ea6675
i2c: add i2c_trylock_bus wrapper, use it

This unifies usage with i2c_lock_bus and i2c_unlock_bus, and paves the
way for the next patch which looks a bit saner with this preparatory
work taken care of beforehand.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
drivers/i2c/i2c-mux.c
include/linux/i2c.h