summaryrefslogtreecommitdiff
path: root/drivers/staging/most/core.h
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-11-21 15:04:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:35 +0100
commit9136fccf38a7aaf173c42365664c2fce1bcc67a1 (patch)
treee56235ee11cf2e824db310e24f678243a23cee25 /drivers/staging/most/core.h
parentec0c2f62ab8cebde7dbe8a3a4780dee280f1a98c (diff)
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: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/core.h')
-rw-r--r--drivers/staging/most/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/most/core.h b/drivers/staging/most/core.h
index 2f61a69afb77..764f013d0db4 100644
--- a/drivers/staging/most/core.h
+++ b/drivers/staging/most/core.h
@@ -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)