mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
efc78983d2
Since we have access to the struct device_driver and thus to the ID table, there is no need to supply special parameters to st_sensors_of_name_probe(). Besides that we have a common API to get driver match data, there is no need to do matching separately for OF and ACPI. Taking into consideration above, simplify the ST sensors code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
19 lines
431 B
C
19 lines
431 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* STMicroelectronics sensors i2c library driver
|
|
*
|
|
* Copyright 2012-2013 STMicroelectronics Inc.
|
|
*
|
|
* Denis Ciocca <denis.ciocca@st.com>
|
|
*/
|
|
|
|
#ifndef ST_SENSORS_I2C_H
|
|
#define ST_SENSORS_I2C_H
|
|
|
|
#include <linux/i2c.h>
|
|
#include <linux/iio/common/st_sensors.h>
|
|
|
|
int st_sensors_i2c_configure(struct iio_dev *indio_dev,
|
|
struct i2c_client *client);
|
|
|
|
#endif /* ST_SENSORS_I2C_H */
|