Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14f50ed4 authored by Vignesh Kulothungan's avatar Vignesh Kulothungan
Browse files

include: soc: Add swr device definition



Add definition for sound wire device id

Change-Id: I2b599d96abdb880bdeb60153e03e6123e337bfe9
Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent d71ec81b
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
/* 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 */
+1 −1
Original line number Diff line number Diff line
@@ -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;