Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: acpi: Remove dead code, i.e. i2c_acpi_match_device()

We have no users of i2c_acpi_match_device() anymore and seems
will not have them in the future, thus remove dead code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>

authored by

Andy Shevchenko and committed by
Wolfram Sang
e4682b8a e3cb82c6

-19
-10
drivers/i2c/i2c-core-acpi.c
··· 276 276 dev_warn(&adap->dev, "failed to enumerate I2C slaves\n"); 277 277 } 278 278 279 - const struct acpi_device_id * 280 - i2c_acpi_match_device(const struct acpi_device_id *matches, 281 - struct i2c_client *client) 282 - { 283 - if (!(client && matches)) 284 - return NULL; 285 - 286 - return acpi_match_device(matches, &client->dev); 287 - } 288 - 289 279 static const struct acpi_device_id i2c_acpi_force_400khz_device_ids[] = { 290 280 /* 291 281 * These Silead touchscreen controllers only work at 400KHz, for
-9
drivers/i2c/i2c-core.h
··· 59 59 } 60 60 61 61 #ifdef CONFIG_ACPI 62 - const struct acpi_device_id * 63 - i2c_acpi_match_device(const struct acpi_device_id *matches, 64 - struct i2c_client *client); 65 62 void i2c_acpi_register_devices(struct i2c_adapter *adap); 66 63 67 64 int i2c_acpi_get_irq(struct i2c_client *client); 68 65 #else /* CONFIG_ACPI */ 69 66 static inline void i2c_acpi_register_devices(struct i2c_adapter *adap) { } 70 - static inline const struct acpi_device_id * 71 - i2c_acpi_match_device(const struct acpi_device_id *matches, 72 - struct i2c_client *client) 73 - { 74 - return NULL; 75 - } 76 67 77 68 static inline int i2c_acpi_get_irq(struct i2c_client *client) 78 69 {