Skip to contentSkip to conversation

mei: bus: export to_mei_cl_device for mei client devices drivers

char-misc-next Tomas Winkler 1 participant 1 message Feb 9, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Export to_mei_cl_device macro, as it is needed also in the mei client drivers.

---
 drivers/misc/mei/bus.c     | 1 -
 include/linux/mei_cl_bus.h | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/misc/mei/bus.c +0 -1
index fc3872fe7b25..e5456faf00e6 100644
@@ -28,7 +28,6 @@
 #include "client.h"
 
 #define to_mei_cl_driver(d) container_of(d, struct mei_cl_driver, driver)
-#define to_mei_cl_device(d) container_of(d, struct mei_cl_device, dev)
 
 /**
  * __mei_cl_send - internal client send (write)
include/linux/mei_cl_bus.h +2 -0
index 7fde40e17c8b..03b6ba2a63f8 100644
@@ -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;
Signature · 1 line
2.20.1