Skip to content

Commit

Permalink
mei: bus: export to_mei_cl_device for mei client devices drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Feb 12, 2019
1 parent 21698fd commit 32ea33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/misc/mei/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions include/linux/mei_cl_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32ea33a

Please sign in to comment.