6b1072a789
- Use separated patches - Use new panel driver (with backlight support) - Battery fixes - Fix compass (AK8975) (not tested, only probing works, but sometimes doesn't - says "Unexpected device" - need to investigate that) - Touchkey is working + LED - Keyboard backlight + HALL for slideout detection
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From 0a1b842f3974f3ee69129e598747a17921810bfd Mon Sep 17 00:00:00 2001
|
|
From: ryang <decatf@gmail.com>
|
|
Date: Tue, 18 Sep 2018 12:38:03 -0400
|
|
Subject: [PATCH 08/34] iio: accel: kxcjk: Add device tree support
|
|
|
|
(cherry picked from commit 3fb788f94dcb55414ba774211e21c80153fd21f5)
|
|
Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
|
|
---
|
|
drivers/iio/accel/kxcjk-1013.c | 12 +++++++++++-
|
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c
|
|
index af53a1084ee5..3e13a837eb85 100644
|
|
--- a/drivers/iio/accel/kxcjk-1013.c
|
|
+++ b/drivers/iio/accel/kxcjk-1013.c
|
|
@@ -1504,13 +1504,23 @@ static const struct i2c_device_id kxcjk1013_id[] = {
|
|
{"SMO8500", KXCJ91008},
|
|
{}
|
|
};
|
|
-
|
|
MODULE_DEVICE_TABLE(i2c, kxcjk1013_id);
|
|
|
|
+static const struct of_device_id kxcjk1013_of_match[] = {
|
|
+ { .compatible = "kionix,kxcjk1013", },
|
|
+ { .compatible = "kionix,kxcj91008", },
|
|
+ { .compatible = "kionix,kxtj21009", },
|
|
+ { .compatible = "kionix,kxtf9", },
|
|
+ { .compatible = "kionix,SMO8500", },
|
|
+ { }
|
|
+};
|
|
+MODULE_DEVICE_TABLE(of, kxcjk1013_of_match);
|
|
+
|
|
static struct i2c_driver kxcjk1013_driver = {
|
|
.driver = {
|
|
.name = KXCJK1013_DRV_NAME,
|
|
.acpi_match_table = ACPI_PTR(kx_acpi_match),
|
|
+ .of_match_table = of_match_ptr(kxcjk1013_of_match),
|
|
.pm = &kxcjk1013_pm_ops,
|
|
},
|
|
.probe = kxcjk1013_probe,
|
|
--
|
|
2.20.1
|
|
|