Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01427fe7 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Dmitry Torokhov
Browse files

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.

Suggested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 47e3a5ed
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,