2 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
19 * Caller's buffer pointer that holds data to
20 * be transmitted in case of data_write and
21 * data to be copied to in case of data_read.
25 /* Length of data to write/read */
29 * Address in remote memory to write to
34 /* Bitmask of flags, currently unused */
38 #ifdef CONFIG_SND_SOC_WCD_SPI
40 int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg);
41 int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg);
45 int wcd_spi_data_write(struct spi_device *spi, struct wcd_spi_msg *msg)
50 int wcd_spi_data_read(struct spi_device *spi, struct wcd_spi_msg *msg)
55 #endif /* End of CONFIG_SND_SOC_WCD_SPI */
57 #endif /* End of __WCD_SPI_H__ */