Input: adxl34x - Make it enumerable in ACPI environment
Subsystems (2)
PATCH 1/1 Input: adxl34x - Make it enumerable in ACPI environment
The ACPI-enabled platform may contain _DSD method to enable this driver using compatible string.
Remove OF specifics to re-use existing code on ACPI-enabled platforms.
--- drivers/input/misc/adxl34x-i2c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/input/misc/adxl34x-i2c.c +1 -3
@@ -136,7 +136,6 @@ static const struct i2c_device_id adxl34x_id[] = {MODULE_DEVICE_TABLE (i2c, adxl34x_id); -#ifdef CONFIG_OF static const struct of_device_id adxl34x_of_id[] = {/* * The ADXL346 is backward-compatible with the ADXL345. Differences are
@@ -153,13 +152,12 @@ static const struct of_device_id adxl34x_of_id[] = { };MODULE_DEVICE_TABLE (of, adxl34x_of_id); -#endif static struct i2c_driver adxl34x_driver = { .driver = { .name ="adxl34x" , .pm = &adxl34x_i2c_pm, - .of_match_table =of_match_ptr (adxl34x_of_id), + .of_match_table = adxl34x_of_id, }, .probe = adxl34x_i2c_probe, .remove = adxl34x_i2c_remove,
Signature · 1 line
2.11.0
Dmitry Torokhov
maintainerQuoted 4 lines · Andy Shevchenko
The ACPI-enabled platform may contain
_DSDmethod to enable this driver using compatible string.Remove OF specifics to re-use existing code on ACPI-enabled platforms.
Is there an x86 box that uses this device?
Thanks.
Quoted 37 lines
Suggested-by Mika Westerberg <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- drivers/input/misc/adxl34x-i2c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/input/misc/adxl34x-i2c.c +1
-3@@ -136,7 +136,6 @@ static const struct i2c_device_id adxl34x_id[] = {MODULE_DEVICE_TABLE (i2c, adxl34x_id); -#ifdef CONFIG_OF static const struct of_device_id adxl34x_of_id[] = {/* * The ADXL346 is backward-compatible with the ADXL345. Differences are @@ -153,13 +152,12 @@ static const struct of_device_id adxl34x_of_id[] = { };MODULE_DEVICE_TABLE (of, adxl34x_of_id); -#endif static struct i2c_driver adxl34x_driver = { .driver = { .name ="adxl34x" , .pm = &adxl34x_i2c_pm, - .of_match_table =of_match_ptr (adxl34x_of_id), + .of_match_table = adxl34x_of_id, }, .probe = adxl34x_i2c_probe, .remove = adxl34x_i2c_remove,Signature · 1 line
2.11.0
Signature · 1 line
Dmitry
Quoted 9 lines · Dmitry Torokhov
Quoted 6 lines · Andy Shevchenko
The ACPI-enabled platform may contain
_DSDmethod to enable this driver using
compatible string.Remove OF specifics to re-use existing code on ACPI-enabled platforms.
Is there an x86 box that uses this device?
Any open connected one, Edison, Galileo, Joule.
Since we have open connected hardware any sensor can be connected to x86-based board.
Quoted 46 lines
Thanks.
Quoted 41 lines
Suggested-by Mika Westerberg <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>---
drivers/input/misc/adxl34x-i2c.c | 4 +---1 file changed, 1 insertion(+), 3 deletions(-)drivers/input/misc/adxl34x-i2c.c +0
-0@@ -136,7 +136,6 @@ static const struct i2c_device_id adxl34x_id[] = {
MODULE_DEVICE_TABLE(i2c,adxl34x_id);
-#ifdefCONFIG_OF
static const structof_device_idadxl34x_of_id[] = { /*
* The ADXL346 is backward-compatible with the ADXL345. Differences aredrivers/input/misc/adxl34x-i2c.c +0
-0@@ -153,13 +152,12 @@ static const struct of_device_id adxl34x_of_id[] = { };
MODULE_DEVICE_TABLE(of,adxl34x_of_id);
-#endif
static structi2c_driveradxl34x_driver= {
.driver = {
.name = "adxl34x",
.pm =&adxl34x_i2c_pm,drivers/input/misc/adxl34x-i2c.c +1
-1- .of_match_table = of_match_ptr(adxl34x_of_id), + .of_match_table = adxl34x_of_id,},
.probe =adxl34x_i2c_probe,
.remove =adxl34x_i2c_remove,
--
2.11.0
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy