summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/module.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2014-12-11 17:10:55 -0500
committerGreg Kroah-Hartman <greg@kroah.com>2014-12-11 19:53:59 -0500
commite50522209a2e86ffac2d8c9a99c0979914cff5dd (patch)
treea12bcdfafaad4dce61f2bcbb611d25206c4b9a94 /drivers/staging/greybus/module.h
parent1cd9ba1477f25e9137403162092452f176dd30b4 (diff)
greybus: interface_block: rename module.[c|h] to interface_block.[c|h]
"modules" in the driver model here, are really "interface blocks" as that is what they are physically tied to. So rename the files before we start changing the code to make it obvious what is going on. Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/module.h')
-rw-r--r--drivers/staging/greybus/module.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/drivers/staging/greybus/module.h b/drivers/staging/greybus/module.h
deleted file mode 100644
index 2fdca57398d2..000000000000
--- a/drivers/staging/greybus/module.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Greybus modules
- *
- * Copyright 2014 Google Inc.
- *
- * Released under the GPLv2 only.
- */
-
-#ifndef __MODULE_H
-#define __MODULE_H
-
-/* Increase these values if needed */
-#define MAX_CPORTS_PER_MODULE 10
-#define MAX_STRINGS_PER_MODULE 10
-
-struct gb_module {
- struct device dev;
-
- struct list_head interfaces;
- struct list_head links; /* greybus_host_device->modules */
- u8 module_id; /* Physical location within the Endo */
-
- /* Information taken from the manifest module descriptor */
- u16 vendor;
- u16 product;
- char *vendor_string;
- char *product_string;
- u64 unique_id;
-
- struct greybus_host_device *hd;
-};
-#define to_gb_module(d) container_of(d, struct gb_module, dev)
-
-static inline void
-gb_module_set_drvdata(struct gb_module *gmod, void *data)
-{
- dev_set_drvdata(&gmod->dev, data);
-}
-
-static inline void *gb_module_get_drvdata(struct gb_module *gmod)
-{
- return dev_get_drvdata(&gmod->dev);
-}
-
-const struct greybus_module_id *gb_module_match_id(struct gb_module *gmod,
- const struct greybus_module_id *id);
-
-struct gb_module *gb_module_create(struct greybus_host_device *hd,
- u8 module_id);
-void gb_module_destroy(struct gb_module *module);
-
-struct gb_module *gb_module_find(struct greybus_host_device *hd,
- u8 module_id);
-
-#endif /* __MODULE_H */