i2c: export i2c_adapter_depth()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 16 Sep 2016 16:02:42 +0000 (18:02 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Sep 2016 08:48:18 +0000 (10:48 +0200)
commit8dd1fe1594a712eb326e1607c694fbd1baf85f4b
tree2058f58e44b3ecd72aac347e308fbcffbbd77625
parent72cf8c565cf4e25312fb9fa65d306ae736104ade
i2c: export i2c_adapter_depth()

For crazy setups in which an i2c gpio expander is behind an i2c gpio
multiplexer controlled by a gpio provided a second expander using the
same device driver we need to explicitly tell lockdep how to handle
nested locking.

Export i2c_adapter_depth() as public API to be reused outside of i2c
core code.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Peter Rosin <peda@axentia.se>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
include/linux/i2c.h