Skip to content
Snippets Groups Projects
Commit c7f0169e authored by Lee Jones's avatar Lee Jones Committed by Dmitry Torokhov
Browse files

Input: elan_i2c_core - move header inclusion inside


The same clause as its use.

Fixes the following W=1 kernel build warning(s):

 include/linux/input/elan-i2c-ids.h:26:36: warning: ‘elan_acpi_id’ defined but not used [-Wunused-const-variable=]

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20201112104420.GG1997862@dell


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 23fd34a5
No related branches found
No related tags found
1 merge request!312camera and mipi fixes wrt power management
......@@ -34,7 +34,6 @@
#include <linux/completion.h>
#include <linux/of.h>
#include <linux/property.h>
#include <linux/input/elan-i2c-ids.h>
#include <linux/regulator/consumer.h>
#include <asm/unaligned.h>
......@@ -1413,6 +1412,7 @@ static const struct i2c_device_id elan_id[] = {
MODULE_DEVICE_TABLE(i2c, elan_id);
#ifdef CONFIG_ACPI
#include <linux/input/elan-i2c-ids.h>
MODULE_DEVICE_TABLE(acpi, elan_acpi_id);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment