From patchwork Mon Dec 8 22:21:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 5459261 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 0C989BEEA8 for ; Mon, 8 Dec 2014 22:21:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4029C2011E for ; Mon, 8 Dec 2014 22:21:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CC0F200E6 for ; Mon, 8 Dec 2014 22:21:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752586AbaLHWVg (ORCPT ); Mon, 8 Dec 2014 17:21:36 -0500 Received: from mail-qa0-f52.google.com ([209.85.216.52]:46245 "EHLO mail-qa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030AbaLHWVf (ORCPT ); Mon, 8 Dec 2014 17:21:35 -0500 Received: by mail-qa0-f52.google.com with SMTP id dc16so3940959qab.25 for ; Mon, 08 Dec 2014 14:21:34 -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; bh=lGUC/3J9HAs9MV1b5KsKQeYbtdPrueRjv9IZwTO9Pzs=; b=RhNEebN42N02d2M5URdKNH75s0QRAbWscCUOy/TAAldLmHtDrYRRvVdUd5XO+xzzjp kmDfJZ1Ts60BRyWIZ4xcyS6GA1Dg7P8JqOumnDEdaRMD3v/3fyck+XrZRWNwC4dJZ6Z0 WyzBtVX9X6eSnmz8KFW9VIo1GBZp/G9DReWPE= 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; bh=lGUC/3J9HAs9MV1b5KsKQeYbtdPrueRjv9IZwTO9Pzs=; b=mWHfljvVbJCDewQC30fr91GbHF3douvWEirM0vJKJfVaIzGvSnBkDaKz6sNb+8+IHF o+W7tRBeE2K31bdBcD7+sGSPAgDnohkkNhqoOCKqEr8b/vby2hOZ3FQprd8LcMO0pNB1 JIysNNGsiFxRuNg1mhQ6amiDlk9ovX7BuStZy78b6YMbpHPt/BDVWbGFn9LtO7U7urlK SouQd1+9hHVyBLNZ1DoEuduHkrg+seApbyqZhXQLtuKAcwDlSnWJIrXz07XBBYd6CRQL 3vjCN1ldWowi2evByn+lYfF0mY5cL/fMzBAilPUz4R5rfJcZQJFKbG8RJGPW7yKc0OL7 S7mA== X-Gm-Message-State: ALoCoQkRq7/RA9aZQsL94qOyvbnr56AQdfNG2jqZdldvdr27j4dXAeQop17xyFlDqVmPVupZ+IeN X-Received: by 10.224.25.146 with SMTP id z18mr58804629qab.17.1418077294877; Mon, 08 Dec 2014 14:21:34 -0800 (PST) Received: from philcollins.nc.rr.com (cpe-173-095-180-236.nc.res.rr.com. [173.95.180.236]) by mx.google.com with ESMTPSA id 9sm22084410qah.46.2014.12.08.14.21.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Dec 2014 14:21:34 -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 v2 1/4] backlight/lp855x: Remove stale code from lp855x.h Date: Mon, 8 Dec 2014 17:21:15 -0500 Message-Id: <1418077278-14144-1-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 2.1.1 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 These aren't used by anyone, remove them. Signed-off-by: Sean Paul Acked-by: Jingoo Han Acked-by: Arnd Bergmann --- Changes in v2: - None include/linux/platform_data/lp855x.h | 100 ----------------------------------- 1 file changed, 100 deletions(-) diff --git a/include/linux/platform_data/lp855x.h b/include/linux/platform_data/lp855x.h index 9c7fd1e..9e3ac3c 100644 --- a/include/linux/platform_data/lp855x.h +++ b/include/linux/platform_data/lp855x.h @@ -12,65 +12,6 @@ #ifndef _LP855X_H #define _LP855X_H -#define BL_CTL_SHFT (0) -#define BRT_MODE_SHFT (1) -#define BRT_MODE_MASK (0x06) - -/* Enable backlight. Only valid when BRT_MODE=10(I2C only) */ -#define ENABLE_BL (1) -#define DISABLE_BL (0) - -#define I2C_CONFIG(id) id ## _I2C_CONFIG -#define PWM_CONFIG(id) id ## _PWM_CONFIG - -/* DEVICE CONTROL register - LP8550 */ -#define LP8550_PWM_CONFIG (LP8550_PWM_ONLY << BRT_MODE_SHFT) -#define LP8550_I2C_CONFIG ((ENABLE_BL << BL_CTL_SHFT) | \ - (LP8550_I2C_ONLY << BRT_MODE_SHFT)) - -/* DEVICE CONTROL register - LP8551 */ -#define LP8551_PWM_CONFIG LP8550_PWM_CONFIG -#define LP8551_I2C_CONFIG LP8550_I2C_CONFIG - -/* DEVICE CONTROL register - LP8552 */ -#define LP8552_PWM_CONFIG LP8550_PWM_CONFIG -#define LP8552_I2C_CONFIG LP8550_I2C_CONFIG - -/* DEVICE CONTROL register - LP8553 */ -#define LP8553_PWM_CONFIG LP8550_PWM_CONFIG -#define LP8553_I2C_CONFIG LP8550_I2C_CONFIG - -/* CONFIG register - LP8555 */ -#define LP8555_PWM_STANDBY BIT(7) -#define LP8555_PWM_FILTER BIT(6) -#define LP8555_RELOAD_EPROM BIT(3) /* use it if EPROMs should be reset - when the backlight turns on */ -#define LP8555_OFF_OPENLEDS BIT(2) -#define LP8555_PWM_CONFIG LP8555_PWM_ONLY -#define LP8555_I2C_CONFIG LP8555_I2C_ONLY -#define LP8555_COMB1_CONFIG LP8555_COMBINED1 -#define LP8555_COMB2_CONFIG LP8555_COMBINED2 - -/* DEVICE CONTROL register - LP8556 */ -#define LP8556_PWM_CONFIG (LP8556_PWM_ONLY << BRT_MODE_SHFT) -#define LP8556_COMB1_CONFIG (LP8556_COMBINED1 << BRT_MODE_SHFT) -#define LP8556_I2C_CONFIG ((ENABLE_BL << BL_CTL_SHFT) | \ - (LP8556_I2C_ONLY << BRT_MODE_SHFT)) -#define LP8556_COMB2_CONFIG (LP8556_COMBINED2 << BRT_MODE_SHFT) -#define LP8556_FAST_CONFIG BIT(7) /* use it if EPROMs should be maintained - when exiting the low power mode */ - -/* CONFIG register - LP8557 */ -#define LP8557_PWM_STANDBY BIT(7) -#define LP8557_PWM_FILTER BIT(6) -#define LP8557_RELOAD_EPROM BIT(3) /* use it if EPROMs should be reset - when the backlight turns on */ -#define LP8557_OFF_OPENLEDS BIT(2) -#define LP8557_PWM_CONFIG LP8557_PWM_ONLY -#define LP8557_I2C_CONFIG LP8557_I2C_ONLY -#define LP8557_COMB1_CONFIG LP8557_COMBINED1 -#define LP8557_COMB2_CONFIG LP8557_COMBINED2 - enum lp855x_chip_id { LP8550, LP8551, @@ -81,47 +22,6 @@ enum lp855x_chip_id { LP8557, }; -enum lp8550_brighntess_source { - LP8550_PWM_ONLY, - LP8550_I2C_ONLY = 2, -}; - -enum lp8551_brighntess_source { - LP8551_PWM_ONLY = LP8550_PWM_ONLY, - LP8551_I2C_ONLY = LP8550_I2C_ONLY, -}; - -enum lp8552_brighntess_source { - LP8552_PWM_ONLY = LP8550_PWM_ONLY, - LP8552_I2C_ONLY = LP8550_I2C_ONLY, -}; - -enum lp8553_brighntess_source { - LP8553_PWM_ONLY = LP8550_PWM_ONLY, - LP8553_I2C_ONLY = LP8550_I2C_ONLY, -}; - -enum lp8555_brightness_source { - LP8555_PWM_ONLY, - LP8555_I2C_ONLY, - LP8555_COMBINED1, /* Brightness register with shaped PWM */ - LP8555_COMBINED2, /* PWM with shaped brightness register */ -}; - -enum lp8556_brightness_source { - LP8556_PWM_ONLY, - LP8556_COMBINED1, /* pwm + i2c before the shaper block */ - LP8556_I2C_ONLY, - LP8556_COMBINED2, /* pwm + i2c after the shaper block */ -}; - -enum lp8557_brightness_source { - LP8557_PWM_ONLY, - LP8557_I2C_ONLY, - LP8557_COMBINED1, /* pwm + i2c after the shaper block */ - LP8557_COMBINED2, /* pwm + i2c before the shaper block */ -}; - struct lp855x_rom_data { u8 addr; u8 val;