From patchwork Fri Dec 5 18:44:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 5445221 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 043BCBEEA8 for ; Fri, 5 Dec 2014 18:44:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28929201EC for ; Fri, 5 Dec 2014 18:44:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 587D1201DD for ; Fri, 5 Dec 2014 18:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbaLESoo (ORCPT ); Fri, 5 Dec 2014 13:44:44 -0500 Received: from mail-ig0-f181.google.com ([209.85.213.181]:45350 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbaLESon (ORCPT ); Fri, 5 Dec 2014 13:44:43 -0500 Received: by mail-ig0-f181.google.com with SMTP id l13so1308738iga.8 for ; Fri, 05 Dec 2014 10:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=slk8XyUEpDSLUoC0Lkii3o9bJ4G2xtST9x2MK59FIBs=; b=DDVapNuxRHVq5qeU6aqfsdvMFVu5HppT+YPXlqfUJsIim2sQxEdhkNvLZQ5vzZGlgl 50di++HH/h5I0tBAqNjnlZMyoJfcw0/Cm+zuzaA9bMBHM6ZPWJKn6uqiIf0Pq7Dachs/ 2tVPj8FHmbO/zJQ9tMMki+C/V4BG9HOH2xO+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=slk8XyUEpDSLUoC0Lkii3o9bJ4G2xtST9x2MK59FIBs=; b=cC90k3Aw4cc2urtc1zz9YE5fSvwDpp6IvWfHVh1eSsYpxLWwtsEEn3krwc72BUyXtw stnLKA55OfIy9wJxDnb1bc6AbmsCpEWP+z7ULvZFNlj/CgiZ0NnFBlCI5j4ylwJ0RtM/ j2ZileH5rC1UDWBKDJwzhSwuohAhqpbqkcTU/C30dyj12pe8h+e05stzxlTiRp1mVjwL ErQ2AU/EilF+mEKaYBiVR0iAqTVxAdUfbFmfaWp2LO0XEZOll/z58XH+B8mW8yxUoOJp 8YUmzgrARUyfx005Fw7NYzGj+3Am9PHmezemqs3u3qL0QGJLUdtuDczpa5fKy5TMJp0j 232Q== X-Gm-Message-State: ALoCoQkIlVVazX+NmRs9QGugCHPkY8l4sUIiAvucgMPQ3ifa/lGgvC6bz9ekm2HdhQzzCZGj+Lum X-Received: by 10.107.156.211 with SMTP id f202mr16389156ioe.15.1417805082574; Fri, 05 Dec 2014 10:44:42 -0800 (PST) Received: from davidriley-lab.mtv.corp.google.com ([172.22.64.15]) by mx.google.com with ESMTPSA id n17sm1226328igi.2.2014.12.05.10.44.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Dec 2014 10:44:42 -0800 (PST) From: Sean Paul To: milo.kim@ti.com, linux-fbdev@vger.kernel.org Cc: arnd@arndb.de, lee.jones@linaro.org, cooloney@gmail.com, jg1.han@samsung.com, Sean Paul Subject: [PATCH 4/4] backlight/lp855x: Remove CONFIG_OF ifdef in favor of Kconfig depends Date: Fri, 5 Dec 2014 10:44:29 -0800 Message-Id: <1417805069-20441-4-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1417805069-20441-1-git-send-email-seanpaul@chromium.org> References: <1417805069-20441-1-git-send-email-seanpaul@chromium.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that we've removed all traces of pdata, remove the CONFIG_OF ifdef from lp855x and instead make the driver depend on OF. Signed-off-by: Sean Paul --- drivers/video/backlight/Kconfig | 2 +- drivers/video/backlight/lp855x_bl.c | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index 8d03924..113c8b3 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig @@ -384,7 +384,7 @@ config BACKLIGHT_LM3639 config BACKLIGHT_LP855X tristate "Backlight driver for TI LP855X" - depends on BACKLIGHT_CLASS_DEVICE && I2C && PWM + depends on BACKLIGHT_CLASS_DEVICE && I2C && PWM && OF help This supports TI LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and LP8557 backlight driver. diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index 8b81d8e..3d3b8cf 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -379,7 +379,6 @@ static const struct attribute_group lp855x_attr_group = { .attrs = lp855x_attributes, }; -#ifdef CONFIG_OF static int lp855x_parse_dt(struct lp855x *lp) { struct device *dev = lp->dev; @@ -425,12 +424,6 @@ static int lp855x_parse_dt(struct lp855x *lp) return 0; } -#else -static int lp855x_parse_dt(struct lp855x *lp) -{ - return -EINVAL; -} -#endif static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id) {