4 * Copyright 2014 Google Inc.
6 * Released under the GPLv2 only.
12 /* Greybus "public" definitions" */
15 u8 module_id; /* Physical location within the Endo */
17 #define to_gb_module(d) container_of(d, struct gb_module, dev)
19 struct gb_host_device;
21 /* Greybus "private" definitions */
22 struct gb_module *gb_module_find(struct gb_host_device *hd, u8 module_id);
23 struct gb_module *gb_module_create(struct device *parent, u8 module_id);
24 void gb_module_remove_all(struct gb_endo *endo);
26 #endif /* __MODULE_H */