| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
/* |
| 3 |
* rt5575-spi.h -- ALC5575 SPI driver |
| 4 |
* |
| 5 |
* Copyright(c) 2025 Realtek Semiconductor Corp. |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef __RT5575_SPI_H__ |
| 10 |
#define __RT5575_SPI_H__ |
| 11 |
|
| 12 |
#if IS_ENABLED(CONFIG_SND_SOC_RT5575_SPI) |
| 13 |
struct spi_device *rt5575_spi_get_device(struct device *dev); |
| 14 |
int rt5575_spi_fw_load(struct spi_device *spi); |
| 15 |
#else |
| 16 |
static inline struct spi_device *rt5575_spi_get_device(struct device *dev) |
| 17 |
{ |
| 18 |
return NULL; |
| 19 |
} |
| 20 |
|
| 21 |
static inline int rt5575_spi_fw_load(struct spi_device *spi) |
| 22 |
{ |
| 23 |
return -EINVAL; |
| 24 |
} |
| 25 |
#endif |
| 26 |
|
| 27 |
#endif /* __RT5575_SPI_H__ */ |