mei: bus: add reference to bus device in struct mei_cl_client
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 23 Jul 2015 12:08:41 +0000 (15:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:21:59 +0000 (17:21 -0700)
commit512f64d9f7467597388ffbd5a21589ee3f375d8b
tree71e0a6bdbbcf80a602d69d11ecdbbec08ad78d16
parentfeb8cd0fe7d63fd259c28f8a52fc88745717c9ec
mei: bus: add reference to bus device in struct mei_cl_client

Add reference to the bus device (mei_device) for easier access.
To ensures that referencing cldev->bus is valid during cldev life time
we increase the bus ref counter on a client device creation and drop it
on the device release.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c
include/linux/mei_cl_bus.h
This page took 0.027928 seconds and 5 git commands to generate.