#include <linux/greybus.h>
#include "greybus_trace.h"
static ssize_t bundle_class_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(bundle_class);
static ssize_t bundle_id_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(bundle_id);
static ssize_t state_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t state_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t size)
{ … }
static DEVICE_ATTR_RW(state);
static struct attribute *bundle_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct gb_bundle *gb_bundle_find(struct gb_interface *intf,
u8 bundle_id)
{ … }
static void gb_bundle_release(struct device *dev)
{ … }
#ifdef CONFIG_PM
static void gb_bundle_disable_all_connections(struct gb_bundle *bundle)
{ … }
static void gb_bundle_enable_all_connections(struct gb_bundle *bundle)
{ … }
static int gb_bundle_suspend(struct device *dev)
{ … }
static int gb_bundle_resume(struct device *dev)
{ … }
static int gb_bundle_idle(struct device *dev)
{ … }
#endif
static const struct dev_pm_ops gb_bundle_pm_ops = …;
const struct device_type greybus_bundle_type = …;
struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
u8 class)
{ … }
int gb_bundle_add(struct gb_bundle *bundle)
{ … }
void gb_bundle_destroy(struct gb_bundle *bundle)
{ … }