Skip to content

Commit 32ea33a

Browse files
Tomas Winklergregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 21698fd commit 32ea33a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/misc/mei/bus.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "client.h"
2929

3030
#define to_mei_cl_driver(d) container_of(d, struct mei_cl_driver, driver)
31-
#define to_mei_cl_device(d) container_of(d, struct mei_cl_device, dev)
3231

3332
/**
3433
* __mei_cl_send - internal client send (write)

include/linux/mei_cl_bus.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ struct mei_cl_device {
5555
void *priv_data;
5656
};
5757

58+
#define to_mei_cl_device(d) container_of(d, struct mei_cl_device, dev)
59+
5860
struct mei_cl_driver {
5961
struct device_driver driver;
6062
const char *name;

0 commit comments

Comments
 (0)