Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp716271img; Thu, 21 Mar 2019 07:31:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgEVOF1iqk1/GfUQ97fmVQb/rfTsPIdvcetBf1ZeMdifjW/ObCU6qiBQwGPZsSsQINvVAY X-Received: by 2002:a17:902:bf0c:: with SMTP id bi12mr3912912plb.340.1553178678793; Thu, 21 Mar 2019 07:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553178678; cv=none; d=google.com; s=arc-20160816; b=TlZkDQAGDSKt2wPzjZovZSMOQDO75EldmrBZmarfp3z68+kzioBGqQGxpTgiSx2BQ7 LyRunzGTkSO0I27oVTV9EvLgHaQBskaIInTO8mdTAnvYV/m6xLmfo7CVogOlR82OaxPS Mfs/kV/VfhJtyKcxz6QapGiFxGDU3/VRzTSYEqjkLUS1eJmvPDeE8IOoHAM5+M42RiUb zKmeYumTWYy1G5a9jG9c19jgWI2UJWZsS8s48aoPvZ+ywvKzv7XD58giYkHURcPX9aD2 roBOKTa9P9bN1c/uMTAbc9MEQDlZNL0tu4TP88CkqHXYgPiuAJ2spwG2BCDzOuGrg0v9 rVgA== 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=uFi+1SzGXHIF123ig+D8JoF8Hv2kpWsHuTGuksp3bkw=; b=mLMJXRKQ16LzavuL5bjASirpJhqT5IeUO/nlSCvMJnYGGkDu/tOFaqPGL1qh0E76ED P2EhBsLPaslEZy084TzqNNN4BIAwo+IR0VxoAn9iF/dhctxnvle0IkyBUtBY5cwT9cQw 2idrhDLyykwDvZCV9A06zExS5e7qkVFU23MOwTcoeUAOawqTDLtXXacTM5Npo2Z5P5z8 +mMfF0vjumb/sH1qb2iNQrKWg3yKbE5BDxGITNYKiNUcEoLODvrdON8KuaQMmq3ewTg/ aYW1nS2RLFYtQTQgpkpYv90S+PSRTGeJJAFhD99kuv54YM5uEfD43bQW/vD7Nl48e68U OL2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KimGcrND; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 bi12si4478252plb.205.2019.03.21.07.31.00; Thu, 21 Mar 2019 07:31:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=KimGcrND; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728509AbfCUO3p (ORCPT + 99 others); Thu, 21 Mar 2019 10:29:45 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:54373 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbfCUO3O (ORCPT ); Thu, 21 Mar 2019 10:29:14 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2LET5PR047537; Thu, 21 Mar 2019 09:29:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553178545; bh=uFi+1SzGXHIF123ig+D8JoF8Hv2kpWsHuTGuksp3bkw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KimGcrNDaUZgrwrXm8jWVMubPfS83kjTf+q35he7dvgHwSgAIBElgxKRotT+pkXxY edQ+EQsVKGsSGK1C4JHW0n+7VkJBEzawKlLAbTni/WibZEFwNEY3AqDhQdLbmq48rL mwOOBcTMVVJ/SlfzpBWsHosEQDkeAfqfFbmHncCI= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2LET5Fe025808 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Mar 2019 09:29:05 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 21 Mar 2019 09:29:04 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Thu, 21 Mar 2019 09:29:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2LET4u5031315; Thu, 21 Mar 2019 09:29:04 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH 3/4] mfd: ti-lmu: Remove LM3532 backlight driver references Date: Thu, 21 Mar 2019 09:28:37 -0500 Message-ID: <20190321142838.22985-3-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190321142838.22985-1-dmurphy@ti.com> References: <20190321142838.22985-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- v5 - No changes - https://lore.kernel.org/patchwork/patch/1050411/ v4 - No changes - https://lore.kernel.org/patchwork/patch/1050123/ v3 - No changes - https://lore.kernel.org/patchwork/patch/1049025/ 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(-) 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, -- 2.21.0.5.gaeb582a983