commit | 611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6 | [log] [tgz] |
---|---|---|
author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | Mon Jul 27 17:30:49 2015 +0300 |
committer | Wolfram Sang <wsa@the-dreams.de> | Mon Aug 10 08:37:35 2015 +0200 |
tree | 21ecc5c1663e948017d947026fe071e1f0906f50 | |
parent | 141124e6e0db645396321aabed01c5e0b12cccc1 [diff] |
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>