linux-stable/include/linux/iio/common/st_sensors_i2c.h
Andy Shevchenko efc78983d2 iio: st_sensors: Drop redundant parameter from st_sensors_of_name_probe()
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>
2020-01-13 21:51:52 +00:00

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 */