mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
iio: am2315: Remove acpi_device_id table
With CONFIG_ACPI=n and -Werror, 0-day reports: drivers/iio/humidity/am2315.c:259:36: error: 'am2315_acpi_id' defined but not used According to Andy Shevchenko, the ACPI ID used in this driver is fake and does not really exist. Remove it and with it ACPI support from the driver. Note that, if an explicit of_device_id table is added to the driver it could support the PRP0001 based ACPI approach. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
ef8512b3b2
commit
3a57abfaa5
1 changed files with 0 additions and 9 deletions
|
@ -7,7 +7,6 @@
|
|||
* 7-bit I2C address: 0x5C.
|
||||
*/
|
||||
|
||||
#include <linux/acpi.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/kernel.h>
|
||||
|
@ -256,17 +255,9 @@ static const struct i2c_device_id am2315_i2c_id[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(i2c, am2315_i2c_id);
|
||||
|
||||
static const struct acpi_device_id am2315_acpi_id[] = {
|
||||
{"AOS2315", 0},
|
||||
{}
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(acpi, am2315_acpi_id);
|
||||
|
||||
static struct i2c_driver am2315_driver = {
|
||||
.driver = {
|
||||
.name = "am2315",
|
||||
.acpi_match_table = ACPI_PTR(am2315_acpi_id),
|
||||
},
|
||||
.probe = am2315_probe,
|
||||
.id_table = am2315_i2c_id,
|
||||
|
|
Loading…
Reference in a new issue