mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Vinod Koul](/assets/img/avatar_default.png)
This adds the base SoundWire bus type, bus and driver registration. along with changes to module device table for new SoundWire device type. Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Acked-By: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 lines
565 B
C
19 lines
565 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Copyright(c) 2015-17 Intel Corporation.
|
|
|
|
#ifndef __SOUNDWIRE_TYPES_H
|
|
#define __SOUNDWIRE_TYPES_H
|
|
|
|
extern struct bus_type sdw_bus_type;
|
|
|
|
#define drv_to_sdw_driver(_drv) container_of(_drv, struct sdw_driver, driver)
|
|
|
|
#define sdw_register_driver(drv) \
|
|
__sdw_register_driver(drv, THIS_MODULE)
|
|
|
|
int __sdw_register_driver(struct sdw_driver *drv, struct module *);
|
|
void sdw_unregister_driver(struct sdw_driver *drv);
|
|
|
|
int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size);
|
|
|
|
#endif /* __SOUNDWIRE_TYPES_H */
|