[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181124141703.29232-2-masneyb@onstation.org>
Date: Sat, 24 Nov 2018 09:17:03 -0500
From: Brian Masney <masneyb@...tation.org>
To: lee.jones@...aro.org, daniel.thompson@...aro.org,
jingoohan1@...il.com, robh+dt@...nel.org, mark.rutland@....com
Cc: b.zolnierkie@...sung.com, dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, jonathan@...ek.ca,
ctatlor97@...il.com
Subject: [PATCH 2/2] backlight: lm3630a: add backlight driver match_table
From: Jonathan Marek <jonathan@...ek.ca>
Add device tree support to the lm3630a driver.
Signed-off-by: Jonathan Marek <jonathan@...ek.ca>
[masneyb@...tation.org: checkpatch fixes; add 'a' to compatible string]
Signed-off-by: Brian Masney <masneyb@...tation.org>
---
This is part of upstreaming various components of the LG Nexus 5
(hammerhead) phone.
drivers/video/backlight/lm3630a_bl.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c
index 2030a6b77a09..159d4013d9c2 100644
--- a/drivers/video/backlight/lm3630a_bl.c
+++ b/drivers/video/backlight/lm3630a_bl.c
@@ -470,11 +470,18 @@ static const struct i2c_device_id lm3630a_id[] = {
{}
};
+static const struct of_device_id lm3630a_match_table[] = {
+ { .compatible = "ti,lm3630a", },
+ { },
+};
+
+
MODULE_DEVICE_TABLE(i2c, lm3630a_id);
static struct i2c_driver lm3630a_i2c_driver = {
.driver = {
.name = LM3630A_NAME,
+ .of_match_table = lm3630a_match_table,
},
.probe = lm3630a_probe,
.remove = lm3630a_remove,
--
2.17.2
Powered by blists - more mailing lists