mei: bus: export to_mei_cl_device for mei client devices drivers
authorTomas Winkler <tomas.winkler@intel.com>
Sat, 9 Feb 2019 16:42:05 +0000 (18:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 09:38:46 +0000 (10:38 +0100)
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>
drivers/misc/mei/bus.c
include/linux/mei_cl_bus.h

index fc3872fe7b2510e1fa862ea508be53ad377a4bfd..e5456faf00e650f4cd16ade1367efff32e1c9546 100644 (file)
@@ -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)
index 7fde40e17c8b0716dcdc572f0f17f0e6275b9a9c..03b6ba2a63f8c72109d41e180f5550142d29b96e 100644 (file)
@@ -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;