mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
1ecd245e0e
Some devices need to be configured with special bit in order to use spi 3-wire. This was done during device identification phase. Instead, let's move this part as spi specific. Doing this the check_device_support function becomes a simple device id check, so let's rename it. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
19 lines
432 B
C
19 lines
432 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* STMicroelectronics sensors spi library driver
|
|
*
|
|
* Copyright 2012-2013 STMicroelectronics Inc.
|
|
*
|
|
* Denis Ciocca <denis.ciocca@st.com>
|
|
*/
|
|
|
|
#ifndef ST_SENSORS_SPI_H
|
|
#define ST_SENSORS_SPI_H
|
|
|
|
#include <linux/spi/spi.h>
|
|
#include <linux/iio/common/st_sensors.h>
|
|
|
|
int st_sensors_spi_configure(struct iio_dev *indio_dev,
|
|
struct spi_device *spi);
|
|
|
|
#endif /* ST_SENSORS_SPI_H */
|