![Greg Kroah-Hartman](/assets/img/avatar_default.png)
Rename struct gb_interface to struct gb_bundle It's a lot of renaming, some structures got renamed and also some fields, but the goal was to rename things to make sense with the new naming of how the system is put together in the 'driver model' view. Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
35 lines
847 B
C
35 lines
847 B
C
/*
|
|
* Greybus bundles
|
|
*
|
|
* Copyright 2014 Google Inc.
|
|
* Copyright 2014 Linaro Ltd.
|
|
*
|
|
* Released under the GPLv2 only.
|
|
*/
|
|
|
|
#ifndef __BUNDLE_H
|
|
#define __BUNDLE_H
|
|
|
|
#include <linux/list.h>
|
|
|
|
/* Greybus "public" definitions" */
|
|
struct gb_bundle {
|
|
struct device dev;
|
|
struct gb_interface_block *gb_ib;
|
|
u8 id;
|
|
u8 device_id;
|
|
struct list_head connections;
|
|
|
|
struct list_head links; /* interface->bundles */
|
|
};
|
|
#define to_gb_bundle(d) container_of(d, struct gb_bundle, dev)
|
|
|
|
/* Greybus "private" definitions" */
|
|
struct gb_bundle *gb_bundle_create(struct gb_interface_block *gb_ib, u8 module_id);
|
|
void gb_bundle_destroy(struct gb_interface_block *gb_ib);
|
|
int gb_bundle_init(struct gb_interface_block *gb_ib, u8 module_id, u8 device_id);
|
|
|
|
struct gb_bundle *gb_bundle_find(struct gb_interface_block *gb_ib, u8 bundle_id);
|
|
|
|
#endif /* __BUNDLE_H */
|