53d13cb4c8
- Bluetooth is now working - Audio works too (speaker/headphones/earpiece/mic - internal and headset) - Keyboard layout for X11 - Xorg config for rotated screen - Suspend issues fixed (tested on MATE) - OTG bindings updated - not working yet
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] 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
|
|
|