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:
Vignesh Kulothungan 2019-10-31 18:14:47 -07:00
commit 14f50ed4f2
2 changed files with 22 additions and 1 deletions

View 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 */

View file

@ -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;