summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5575-spi.h
blob: 084638820b6ff0e64e6eea2d2fdd992d2950cdc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * rt5575-spi.h  --  ALC5575 SPI driver
 *
 * Copyright(c) 2025 Realtek Semiconductor Corp.
 *
 */

#ifndef __RT5575_SPI_H__
#define __RT5575_SPI_H__

#if IS_ENABLED(CONFIG_SND_SOC_RT5575_SPI)
struct spi_device *rt5575_spi_get_device(struct device *dev);
int rt5575_spi_fw_load(struct spi_device *spi);
#else
static inline struct spi_device *rt5575_spi_get_device(struct device *dev)
{
	return NULL;
}

static inline int rt5575_spi_fw_load(struct spi_device *spi)
{
	return -EINVAL;
}
#endif

#endif /* __RT5575_SPI_H__ */