mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
include: soc: Add swr device definition
Add definition for sound wire device id Change-Id: I2b599d96abdb880bdeb60153e03e6123e337bfe9 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:
parent
d71ec81bb0
commit
14f50ed4f2
2 changed files with 22 additions and 1 deletions
21
include/soc/audio_mod_devicetable.h
Normal file
21
include/soc/audio_mod_devicetable.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef AUDIO_MOD_DEVICETABLE_H
|
||||
#define AUDIO_MOD_DEVICETABLE_H
|
||||
|
||||
#include <linux/mod_devicetable.h>
|
||||
|
||||
/* soundwire */
|
||||
|
||||
#define SOUNDWIRE_NAME_SIZE 32
|
||||
#define SOUNDWIRE_MODULE_PREFIX "swr:"
|
||||
|
||||
struct swr_device_id {
|
||||
char name[SOUNDWIRE_NAME_SIZE];
|
||||
kernel_ulong_t driver_data; /* Data private to the driver */
|
||||
};
|
||||
#endif /* AUDIO_MOD_DEVICETABLE_H */
|
||||
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
#define _LINUX_SOUNDWIRE_H
|
||||
#include <linux/device.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
#include "audio_mod_devicetable.h"
|
||||
#include <linux/irqdomain.h>
|
||||
|
||||
extern struct bus_type soundwire_type;
|
||||
|
|
|
|||
Loading…
Reference in a new issue