summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2019-02-09 17:42:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-12 10:38:46 +0100
commit32ea33a044842ae6c5fc7e33426e0a7bd50f8801 (patch)
tree0e1a89af082b60b163f612e1aa49b79b658ff729 /include
parentparport_pc: fix find_superio io compare code, should use equal test. (diff)
downloadlinux-32ea33a044842ae6c5fc7e33426e0a7bd50f8801.tar.xz
linux-32ea33a044842ae6c5fc7e33426e0a7bd50f8801.zip
mei: bus: export to_mei_cl_device for mei client devices drivers
Export to_mei_cl_device macro, as it is needed also in the mei client drivers. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mei_cl_bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mei_cl_bus.h b/include/linux/mei_cl_bus.h
index 7fde40e17c8b..03b6ba2a63f8 100644
--- a/include/linux/mei_cl_bus.h
+++ b/include/linux/mei_cl_bus.h
@@ -55,6 +55,8 @@ struct mei_cl_device {
void *priv_data;
};
+#define to_mei_cl_device(d) container_of(d, struct mei_cl_device, dev)
+
struct mei_cl_driver {
struct device_driver driver;
const char *name;