Files
Rishabh Bhatnagar e9a05bb4d3 spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only
Modify spdx tag for all CAF authored files for Kona.

Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-12-10 11:09:45 -08:00

37 lines
769 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*/
#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__ */