Commit 9136fccf authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: core: replace struct most_inst_obj

This patch introduces struct interface_private as a replacement for
the struct most_inst_obj. This structure holds private data that is
only needed by the core module and will be accessed by a pointer from
within the most_interface structure. As a result of this replacement
the bus helper functions can be used to search for devices.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec0c2f62
This diff is collapsed.
......@@ -20,6 +20,7 @@
#include <linux/device.h>
struct module;
struct interface_private;
/**
* Interface type
......@@ -248,6 +249,7 @@ struct most_interface {
unsigned char link_stat,
unsigned char *mac_addr));
void *priv;
struct interface_private *p;
};
#define to_most_interface(d) container_of(d, struct most_interface, dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment