From patchwork Sat Nov 24 14:17:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 10696541 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 191765A4 for ; Sat, 24 Nov 2018 14:17:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04EDB2AB11 for ; Sat, 24 Nov 2018 14:17:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E62C82AB16; Sat, 24 Nov 2018 14:17:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 716BA2AB11 for ; Sat, 24 Nov 2018 14:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726611AbeKYBFn (ORCPT ); Sat, 24 Nov 2018 20:05:43 -0500 Received: from onstation.org ([52.200.56.107]:41768 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeKYBFm (ORCPT ); Sat, 24 Nov 2018 20:05:42 -0500 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 19058967; Sat, 24 Nov 2018 14:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=onstation.org; s=default; t=1543069030; bh=JcoI+iLbax0W5GI5fln0p9Nfh/YwkwMMcf2hQeSRgk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YXn5Ya5YRii06c/BgXaYD2j1T2mrWdDwuTXdLIJlu6kg7SWk4RnENZfmZEsxlIrPO yx+yQ7TqCaZ2CBEVw/LE02BVNQREQg46ibd0nnIh/tXeoCWbGVD7X6afSyb4Gt3Ry3 Nnf4DYBxSnWa5Rdxk+R7AVthQfNk7H4kVH9FU9jU= From: Brian Masney To: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jonathan@marek.ca, ctatlor97@gmail.com Subject: [PATCH 2/2] backlight: lm3630a: add backlight driver match_table Date: Sat, 24 Nov 2018 09:17:03 -0500 Message-Id: <20181124141703.29232-2-masneyb@onstation.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181124141703.29232-1-masneyb@onstation.org> References: <20181124141703.29232-1-masneyb@onstation.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jonathan Marek Add device tree support to the lm3630a driver. Signed-off-by: Jonathan Marek [masneyb@onstation.org: checkpatch fixes; add 'a' to compatible string] Signed-off-by: Brian Masney --- 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,