linux/drivers/soundwire/bus_type.c

// SPDX-License-Identifier: GPL-2.0
// Copyright(c) 2015-17 Intel Corporation.

#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/pm_domain.h>
#include <linux/soundwire/sdw.h>
#include <linux/soundwire/sdw_type.h>
#include "bus.h"
#include "irq.h"
#include "sysfs_local.h"

/**
 * sdw_get_device_id - find the matching SoundWire device id
 * @slave: SoundWire Slave Device
 * @drv: SoundWire Slave Driver
 *
 * The match is done by comparing the mfg_id and part_id from the
 * struct sdw_device_id.
 */
static const struct sdw_device_id *
sdw_get_device_id(struct sdw_slave *slave, const struct sdw_driver *drv)
{}

static int sdw_bus_match(struct device *dev, const struct device_driver *ddrv)
{}

int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size)
{}

int sdw_slave_uevent(const struct device *dev, struct kobj_uevent_env *env)
{}

const struct bus_type sdw_bus_type =;
EXPORT_SYMBOL_GPL();

static int sdw_drv_probe(struct device *dev)
{}

static int sdw_drv_remove(struct device *dev)
{}

static void sdw_drv_shutdown(struct device *dev)
{}

/**
 * __sdw_register_driver() - register a SoundWire Slave driver
 * @drv: driver to register
 * @owner: owning module/driver
 *
 * Return: zero on success, else a negative error code.
 */
int __sdw_register_driver(struct sdw_driver *drv, struct module *owner)
{}
EXPORT_SYMBOL_GPL();

/**
 * sdw_unregister_driver() - unregisters the SoundWire Slave driver
 * @drv: driver to unregister
 */
void sdw_unregister_driver(struct sdw_driver *drv)
{}
EXPORT_SYMBOL_GPL();

static int __init sdw_bus_init(void)
{}

static void __exit sdw_bus_exit(void)
{}

postcore_initcall(sdw_bus_init);
module_exit(sdw_bus_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();