mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-05-08 16:26:04 +00:00
Move st_sensors_of_i2c_probe() in st_sensors_core and rename it in st_sensors_of_name_probe(). That change is necessary to add device-tree support in spi code otherwise the rest of the autodetection will fail since spi->modalias (and indio_dev->name) will be set using compatible string value that differs from standard sensor name Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
30 lines
641 B
C
30 lines
641 B
C
/*
|
|
* STMicroelectronics sensors i2c library driver
|
|
*
|
|
* Copyright 2012-2013 STMicroelectronics Inc.
|
|
*
|
|
* Denis Ciocca <denis.ciocca@st.com>
|
|
*
|
|
* Licensed under the GPL-2.
|
|
*/
|
|
|
|
#ifndef ST_SENSORS_I2C_H
|
|
#define ST_SENSORS_I2C_H
|
|
|
|
#include <linux/i2c.h>
|
|
#include <linux/iio/common/st_sensors.h>
|
|
#include <linux/of.h>
|
|
|
|
void st_sensors_i2c_configure(struct iio_dev *indio_dev,
|
|
struct i2c_client *client, struct st_sensor_data *sdata);
|
|
|
|
#ifdef CONFIG_ACPI
|
|
int st_sensors_match_acpi_device(struct device *dev);
|
|
#else
|
|
static inline int st_sensors_match_acpi_device(struct device *dev)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
|
|
#endif /* ST_SENSORS_I2C_H */
|