android_kernel_sony_sdm845/include/sound/wcd-spi.h
Karthikeyan Mani 795cd39bd9 ASoC: wcd-spi: cleanup to remove unused SPI APIs
spi data read and write are handled by WDSP_EVENT_GETOPS
and can be removed from being exported, rather make them
static.

CRs-Fixed: 2068106
Change-Id: I815f0e7c2ac02236e23c7d1b98929dad93e48d6d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-06-29 12:20:42 -07:00

44 lines
1.2 KiB
C

/*
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __WCD_SPI_H__
#define __WCD_SPI_H__
struct wcd_spi_msg {
/*
* Caller's buffer pointer that holds data to
* be transmitted in case of data_write and
* data to be copied to in case of data_read.
*/
void *data;
/* Length of data to write/read */
size_t len;
/*
* Address in remote memory to write to
* or read from.
*/
u32 remote_addr;
/* Bitmask of flags, currently unused */
u32 flags;
};
struct wcd_spi_ops {
struct spi_device *spi_dev;
int (*read_dev)(struct spi_device *spi, struct wcd_spi_msg *msg);
int (*write_dev)(struct spi_device *spi, struct wcd_spi_msg *msg);
};
#endif /* End of __WCD_SPI_H__ */