// SPDX-License-Identifier: GPL-2.0-only /* * STMicroelectronics sensors spi library driver * * Copyright 2012-2013 STMicroelectronics Inc. * * Denis Ciocca <[email protected]> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/iio/iio.h> #include <linux/property.h> #include <linux/regmap.h> #include <linux/spi/spi.h> #include <linux/iio/common/st_sensors_spi.h> #define ST_SENSORS_SPI_MULTIREAD … static const struct regmap_config st_sensors_spi_regmap_config = …; static const struct regmap_config st_sensors_spi_regmap_multiread_bit_config = …; /* * st_sensors_is_spi_3_wire() - check if SPI 3-wire mode has been selected * @spi: spi device reference. * * Return: true if SPI 3-wire mode is selected, false otherwise. */ static bool st_sensors_is_spi_3_wire(struct spi_device *spi) { … } /* * st_sensors_configure_spi_3_wire() - configure SPI 3-wire if needed * @spi: spi device reference. * @settings: sensor specific settings reference. * * Return: 0 on success, else a negative error code. */ static int st_sensors_configure_spi_3_wire(struct spi_device *spi, struct st_sensor_settings *settings) { … } /* * st_sensors_spi_configure() - configure SPI interface * @indio_dev: IIO device reference. * @spi: spi device reference. * * Return: 0 on success, else a negative error code. */ int st_sensors_spi_configure(struct iio_dev *indio_dev, struct spi_device *spi) { … } EXPORT_SYMBOL_NS(…); MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …;