From patchwork Fri Dec 5 18:44:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 5445201 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 3CED9BEEBA for ; Fri, 5 Dec 2014 18:44:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4118A201B9 for ; Fri, 5 Dec 2014 18:44:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E904201F4 for ; Fri, 5 Dec 2014 18:44:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848AbaLESon (ORCPT ); Fri, 5 Dec 2014 13:44:43 -0500 Received: from mail-ig0-f181.google.com ([209.85.213.181]:55556 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801AbaLESol (ORCPT ); Fri, 5 Dec 2014 13:44:41 -0500 Received: by mail-ig0-f181.google.com with SMTP id l13so1308679iga.8 for ; Fri, 05 Dec 2014 10:44:40 -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=avvFiIqt9E7SDY1JpTvHkcwusN2NdUSJqtGWOIiq924=; b=AbeOYUlU51EmI863/U3rX3GWryOeF08tWtH5SMJ5d2RjeyiOv4X2Qi1gjoh8oPCuF2 KBL2Df81P6vBut3J3TCUbTmHo7hg3bvDAQJbMGg48qseSEGC7fGtd80wv4VqMhR3nAKw En03WktFrD0UC0w8MQogrlQCVBrIj5NxpiL9s= 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=avvFiIqt9E7SDY1JpTvHkcwusN2NdUSJqtGWOIiq924=; b=WXzbw5UmX9PoG4YI2j7ZG1Z989Kph+FytzuhLA7h/R1c6cifrIAfEpGy+ulyA8ByWg 8S9zosEVCANdeWNQHMBwfpKP/vQBX+EPRSMncrKiyCEDptIHbEpjo/AfcM2H/7FxFRoZ hR60UtoykjPyAx2hOg7/FVoJVwx5DOf0IlovyMymDT6KDLonB43PnI709BMPNMZHMy8o arU4MW/ijiTESWQ87uj1paN9P4EO2VP+jr7pweFW2/Fi2i9o2iu5qDiPY6qZV4Y7myw+ 2HlkdNHHyGpJ/gj2YQF9HPW80kKIRXNI2ddZxkdOsRrWgsZWQrDZ1XE6dxZRDDsrnJ/X fxPQ== X-Gm-Message-State: ALoCoQmL+jCx/c8gzBjbWeV+ElLm9KLSqAMPZ8KB/7NU84hjlWx2VbeZtYc6lI62IkOyzorDtoo/ X-Received: by 10.107.14.208 with SMTP id 199mr54764ioo.28.1417805080627; Fri, 05 Dec 2014 10:44:40 -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.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Dec 2014 10:44:40 -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 2/4] backlight/lp855x: Remove platform_data header Date: Fri, 5 Dec 2014 10:44:27 -0800 Message-Id: <1417805069-20441-2-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 No one uses lp855x platform data any longer, remove the header and move its contents into the driver. Signed-off-by: Sean Paul Acked-by: Jingoo Han --- MAINTAINERS | 1 - drivers/video/backlight/lp855x_bl.c | 37 +++++++++++++++++++++++++- include/linux/platform_data/lp855x.h | 51 ------------------------------------ 3 files changed, 36 insertions(+), 53 deletions(-) delete mode 100644 include/linux/platform_data/lp855x.h diff --git a/MAINTAINERS b/MAINTAINERS index 3c64271..4896edb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9318,7 +9318,6 @@ M: Milo Kim S: Maintained F: Documentation/backlight/lp855x-driver.txt F: drivers/video/backlight/lp855x_bl.c -F: include/linux/platform_data/lp855x.h TI LP8727 CHARGER DRIVER M: Milo Kim diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index a26d3bb..d19b61c 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include @@ -63,6 +62,42 @@ struct lp855x_device_config { int (*post_init_device)(struct lp855x *); }; +enum lp855x_chip_id { + LP8550, + LP8551, + LP8552, + LP8553, + LP8555, + LP8556, + LP8557, +}; + +struct lp855x_rom_data { + u8 addr; + u8 val; +}; + +/** + * struct lp855x_platform_data + * @name : Backlight driver name. If it is not defined, default name is set. + * @device_control : value of DEVICE CONTROL register + * @initial_brightness : initial value of backlight brightness + * @period_ns : platform specific pwm period value. unit is nano. + Only valid when mode is PWM_BASED. + * @size_program : total size of lp855x_rom_data + * @rom_data : list of new eeprom/eprom registers + * @supply : regulator that supplies 3V input + */ +struct lp855x_platform_data { + const char *name; + u8 device_control; + u8 initial_brightness; + unsigned int period_ns; + int size_program; + struct lp855x_rom_data *rom_data; + struct regulator *supply; +}; + struct lp855x { const char *chipname; enum lp855x_chip_id chip_id; diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h deleted file mode 100644 index 9e3ac3c..0000000 --- a/include/linux/platform_data/lp855x.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * LP855x Backlight Driver - * - * Copyright (C) 2011 Texas Instruments - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - */ - -#ifndef _LP855X_H -#define _LP855X_H - -enum lp855x_chip_id { - LP8550, - LP8551, - LP8552, - LP8553, - LP8555, - LP8556, - LP8557, -}; - -struct lp855x_rom_data { - u8 addr; - u8 val; -}; - -/** - * struct lp855x_platform_data - * @name : Backlight driver name. If it is not defined, default name is set. - * @device_control : value of DEVICE CONTROL register - * @initial_brightness : initial value of backlight brightness - * @period_ns : platform specific pwm period value. unit is nano. - Only valid when mode is PWM_BASED. - * @size_program : total size of lp855x_rom_data - * @rom_data : list of new eeprom/eprom registers - * @supply : regulator that supplies 3V input - */ -struct lp855x_platform_data { - const char *name; - u8 device_control; - u8 initial_brightness; - unsigned int period_ns; - int size_program; - struct lp855x_rom_data *rom_data; - struct regulator *supply; -}; - -#endif