i2c: core: manage i2c bus device refcount in i2c_[get|put]_adapter
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 27 Jul 2015 14:30:49 +0000 (17:30 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:35 +0000 (08:37 +0200)
commit611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6
tree21ecc5c1663e948017d947026fe071e1f0906f50
parent141124e6e0db645396321aabed01c5e0b12cccc1
i2c: core: manage i2c bus device refcount in i2c_[get|put]_adapter

In addition to module_get()/module_put() add get_device()/put_device()
calls into i2c_get_adapter()/i2c_put_adapter() exported
interfaces. This is done to lock I2C bus device, if it is in use by a
client.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
This page took 0.029892 seconds and 5 git commands to generate.