linux/drivers/greybus/module.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Greybus Module code
 *
 * Copyright 2016 Google Inc.
 * Copyright 2016 Linaro Ltd.
 */

#include <linux/greybus.h>
#include "greybus_trace.h"

static ssize_t eject_store(struct device *dev,
			   struct device_attribute *attr,
			   const char *buf, size_t len)
{}
static DEVICE_ATTR_WO(eject);

static ssize_t module_id_show(struct device *dev,
			      struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(module_id);

static ssize_t num_interfaces_show(struct device *dev,
				   struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(num_interfaces);

static struct attribute *module_attrs[] =;
ATTRIBUTE_GROUPS();

static void gb_module_release(struct device *dev)
{}

const struct device_type greybus_module_type =;

struct gb_module *gb_module_create(struct gb_host_device *hd, u8 module_id,
				   size_t num_interfaces)
{}

/*
 * Register and enable an interface after first attempting to activate it.
 */
static void gb_module_register_interface(struct gb_interface *intf)
{}

static void gb_module_deregister_interface(struct gb_interface *intf)
{}

/* Register a module and its interfaces. */
int gb_module_add(struct gb_module *module)
{}

/* Deregister a module and its interfaces. */
void gb_module_del(struct gb_module *module)
{}

void gb_module_put(struct gb_module *module)
{}