From patchwork Fri Mar 8 20:09:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 159997 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp9138535jad; Fri, 8 Mar 2019 12:09:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyMzcJIeNVDrHw7wXimXO9RkpDJ/k2CAIGGfW0mUtC7Jg7Wf0FgTOrkak+ED0A0DlfkpShH X-Received: by 2002:a63:6e8d:: with SMTP id j135mr18322664pgc.160.1552075781483; Fri, 08 Mar 2019 12:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552075781; cv=none; d=google.com; s=arc-20160816; b=iTFWkOZJ84BFBWYooETgHelkseaVH1GyK2EuVeFQ4D6pjjm2r2mrhBPnL6A+pV0VUo RDBC+VQ3U1pTsmJhnwwkXinVpTXcMpf8ZWwHOLTlGUQwN/841vAur0u3HoJzhbe1aml4 CPxJ5trgf75s70ft1KRVAo4pRYkqfKhOaWeJkEgR2Ut62jZCXNxBCh88pJ3zsvrggbnN gUcij9khN8PaBYYIfm/MnQjxY0cEhzXra2krTP78ux1Y28icK6kK+6MbsYymKNL2ohkE ACddeBOJAHIzFu2a2dnjxErOYeahs6Xrs/chFv2XKU/nCyTgvpjEgaPntmd9xw1tILMU hdmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=UGwQji4tZUQNzf3GY4XjMg4xXPETVXLRiXEcK2BB108=; b=0SK0RpQXOI5DNwke70A1osyO3Wvl92r7G1WltMfyLPJxWjleFEWFpAGensdnRmhwrU SdK+HhA3pUhxD9tb5SMRfV9rIfEvFvKaJIZb3Ys4Qb8nERgJKx2uQfeekKz/3nGzP5tl rJRoQiZy5mtqG7SiXZZbGvKpoeijWktnQTgAg+vfXYVoiFUlpxWuW/xfp5YoXXQ2uANl rTNbVM3YXFiALhIZdFqeLM8dHPyMB2YiZkI0zZwe32a3Z3v0GereF4TndQ6/h8cy1HM5 +MSRaD4bq/dHs1Rd7uRdV0PuUjexeJTylRvWSzR4yvLSs99ZHoBohJuMCt24nhKubP75 eVAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Mb4yyLlO; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si5111249pgg.459.2019.03.08.12.09.41; Fri, 08 Mar 2019 12:09:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Mb4yyLlO; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbfCHUJj (ORCPT + 1 other); Fri, 8 Mar 2019 15:09:39 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:49250 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbfCHUJi (ORCPT ); Fri, 8 Mar 2019 15:09:38 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x28K9TCk109541; Fri, 8 Mar 2019 14:09:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552075769; bh=UGwQji4tZUQNzf3GY4XjMg4xXPETVXLRiXEcK2BB108=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Mb4yyLlOdxWo8bVSVIj8jIkgP68vyErs06/2BXNV/zJ3nP2HaPVbhT4hNRRQoU30f bjSXIqDjuXDiPW0l/WGrlefTTO+QsILcCIFfpo8EsIAAh/2yxBfP0LQOJmQlqUldr+ 9nDbsJlykxM6Gu8j0PoE+ZWEtMJlpClobtLr1oGw= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x28K9THp105475 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 Mar 2019 14:09:29 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 8 Mar 2019 14:09:29 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 8 Mar 2019 14:09:29 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x28K9T97017933; Fri, 8 Mar 2019 14:09:29 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.114.154]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x28K9SU27891; Fri, 8 Mar 2019 14:09:28 -0600 (CST) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v2 3/4] mfd: ti-lmu: Remove LM3532 backlight driver references Date: Fri, 8 Mar 2019 14:09:11 -0600 Message-ID: <20190308200912.28163-3-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190308200912.28163-1-dmurphy@ti.com> References: <20190308200912.28163-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Remove the LM3532 backlight driver references from the ti-lmu code as dedicated driver support is available. Signed-off-by: Dan Murphy --- v2 - Removed LM3532 register definitions from ti-lmu-register - https://lore.kernel.org/patchwork/patch/1048808/ drivers/mfd/ti-lmu.c | 11 -------- include/linux/mfd/ti-lmu-register.h | 44 ----------------------------- include/linux/mfd/ti-lmu.h | 1 - 3 files changed, 56 deletions(-) -- 2.20.1.390.gb5101f9297 diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c index 37d0bdb291c3..b06cb908d1aa 100644 --- a/drivers/mfd/ti-lmu.c +++ b/drivers/mfd/ti-lmu.c @@ -54,14 +54,6 @@ static void ti_lmu_disable_hw(void *data) gpiod_set_value(lmu->en_gpio, 0); } -static const struct mfd_cell lm3532_devices[] = { - { - .name = "ti-lmu-backlight", - .id = LM3532, - .of_compatible = "ti,lm3532-backlight", - }, -}; - #define LM363X_REGULATOR(_id) \ { \ .name = "lm363x-regulator", \ @@ -141,7 +133,6 @@ static const struct ti_lmu_data chip##_data = \ .max_register = max_reg, \ } \ -TI_LMU_DATA(lm3532, LM3532_MAX_REG); TI_LMU_DATA(lm3631, LM3631_MAX_REG); TI_LMU_DATA(lm3632, LM3632_MAX_REG); TI_LMU_DATA(lm3633, LM3633_MAX_REG); @@ -211,7 +202,6 @@ static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id) } static const struct of_device_id ti_lmu_of_match[] = { - { .compatible = "ti,lm3532", .data = &lm3532_data }, { .compatible = "ti,lm3631", .data = &lm3631_data }, { .compatible = "ti,lm3632", .data = &lm3632_data }, { .compatible = "ti,lm3633", .data = &lm3633_data }, @@ -222,7 +212,6 @@ static const struct of_device_id ti_lmu_of_match[] = { MODULE_DEVICE_TABLE(of, ti_lmu_of_match); static const struct i2c_device_id ti_lmu_ids[] = { - { "lm3532", LM3532 }, { "lm3631", LM3631 }, { "lm3632", LM3632 }, { "lm3633", LM3633 }, diff --git a/include/linux/mfd/ti-lmu-register.h b/include/linux/mfd/ti-lmu-register.h index 2125c7c02818..f09510561a55 100644 --- a/include/linux/mfd/ti-lmu-register.h +++ b/include/linux/mfd/ti-lmu-register.h @@ -15,50 +15,6 @@ #include -/* LM3532 */ -#define LM3532_REG_OUTPUT_CFG 0x10 -#define LM3532_ILED1_CFG_MASK 0x03 -#define LM3532_ILED2_CFG_MASK 0x0C -#define LM3532_ILED3_CFG_MASK 0x30 -#define LM3532_ILED1_CFG_SHIFT 0 -#define LM3532_ILED2_CFG_SHIFT 2 -#define LM3532_ILED3_CFG_SHIFT 4 - -#define LM3532_REG_RAMPUP 0x12 -#define LM3532_REG_RAMPDN LM3532_REG_RAMPUP -#define LM3532_RAMPUP_MASK 0x07 -#define LM3532_RAMPUP_SHIFT 0 -#define LM3532_RAMPDN_MASK 0x38 -#define LM3532_RAMPDN_SHIFT 3 - -#define LM3532_REG_ENABLE 0x1D - -#define LM3532_REG_PWM_A_CFG 0x13 -#define LM3532_PWM_A_MASK 0x05 /* zone 0 */ -#define LM3532_PWM_ZONE_0 BIT(2) - -#define LM3532_REG_PWM_B_CFG 0x14 -#define LM3532_PWM_B_MASK 0x09 /* zone 1 */ -#define LM3532_PWM_ZONE_1 BIT(3) - -#define LM3532_REG_PWM_C_CFG 0x15 -#define LM3532_PWM_C_MASK 0x11 /* zone 2 */ -#define LM3532_PWM_ZONE_2 BIT(4) - -#define LM3532_REG_ZONE_CFG_A 0x16 -#define LM3532_REG_ZONE_CFG_B 0x18 -#define LM3532_REG_ZONE_CFG_C 0x1A -#define LM3532_ZONE_MASK (BIT(2) | BIT(3) | BIT(4)) -#define LM3532_ZONE_0 0 -#define LM3532_ZONE_1 BIT(2) -#define LM3532_ZONE_2 BIT(3) - -#define LM3532_REG_BRT_A 0x70 /* zone 0 */ -#define LM3532_REG_BRT_B 0x76 /* zone 1 */ -#define LM3532_REG_BRT_C 0x7C /* zone 2 */ - -#define LM3532_MAX_REG 0x7E - /* LM3631 */ #define LM3631_REG_DEVCTRL 0x00 #define LM3631_LCD_EN_MASK BIT(1) diff --git a/include/linux/mfd/ti-lmu.h b/include/linux/mfd/ti-lmu.h index 1ef51ed36be5..7762c1bce55d 100644 --- a/include/linux/mfd/ti-lmu.h +++ b/include/linux/mfd/ti-lmu.h @@ -22,7 +22,6 @@ #define LMU_EVENT_MONITOR_DONE 0x01 enum ti_lmu_id { - LM3532, LM3631, LM3632, LM3633,