Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8371582pxb; Fri, 19 Feb 2021 14:45:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ1JGfzNtAyiWXW0iGdeEQYj4zeYPAPgib2Bq322Ve6f0A4Gq5rj+yXlLtQWhwFWi/VrzR X-Received: by 2002:a05:6402:3487:: with SMTP id v7mr11359881edc.381.1613774708821; Fri, 19 Feb 2021 14:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613774708; cv=none; d=google.com; s=arc-20160816; b=Ogw/AOO9jnCa7MZ0iREjhQdOMOBScus/70Uc2VXUuxb4srQ0TkRoXJsX4dz30Bflqk D/aEyDVomUCmSGAzN+0iVnOXtCGetqfGwgSXdQvR+3gfRZAkGlnwoJ1AXq6omPOy/dWs 845diX2llvHpTVDSSqLJgQwsnuIIIuxwQ9afiwWo+ffjRvs6pUYlGYC66K/7D4ThrI78 E+8oM+wFwcccTktJ44fc5abRIV1NRGlKVyguc0fuoESEtWPpztlx/f2nqA5Qhc/P/CkO GMYJO9orZTGHtpYRX4n9qjOeUZgpTyo3uTg+aKKEcCMRHfAmaQhtSy46A4l2+S414U0p R+7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QWhGrDHXQrb9SeEG0orPH6o6FCT/GBzzMYnEwwYt9uo=; b=Rl43NMidrizhk6nMz/BuMfkbTju60CBkXKve5tLrTpyro09dF2vdi3H5Zr7Il4ksp3 3cDOBbZVQJrqqS8hjUFq/mtqDtTsC4tsalJ4OwUEdRCxMZQn/SHHkZc06GeqzeL+U+yO 7K16DFGBpU9xN64S69OK4kz+oia3wimQoZIQG8kYylAzHWYMejHodagwEOMPw+IDewqL tLgL69AGbFaDG70KtuePxxoTHEJqqn5RYOm3b6rllC+IqdauxOc1rMbBgkYDF+MP3F8s L35RMJ2AAE4NAn7bVgUc2rs3Iq/yyyiBfF8aVO87bM0zc5EzVJlL7WUMbSw77gqWNEoN Jm9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si6665303ejn.375.2021.02.19.14.44.44; Fri, 19 Feb 2021 14:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229765AbhBSWkO (ORCPT + 99 others); Fri, 19 Feb 2021 17:40:14 -0500 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:38096 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbhBSWkF (ORCPT ); Fri, 19 Feb 2021 17:40:05 -0500 Received: from [77.244.183.192] (port=64500 helo=melee.fritz.box) by hostingweb31.netsons.net with esmtpa (Exim 4.93) (envelope-from ) id 1lDEQi-009zHK-Ux; Fri, 19 Feb 2021 23:39:21 +0100 From: Luca Ceresoli To: Lee Jones Cc: Luca Ceresoli , Linus Walleij , Bartosz Golaszewski , Liam Girdwood , Mark Brown , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] mfd: lp87565: move LP87565_regulator_id to .c file Date: Fri, 19 Feb 2021 23:39:10 +0100 Message-Id: <20210219223910.1831-3-luca@lucaceresoli.net> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210219223910.1831-1-luca@lucaceresoli.net> References: <20210219223910.1831-1-luca@lucaceresoli.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This enum is used only internally to the regulator driver for buck indexes. Signed-off-by: Luca Ceresoli --- drivers/regulator/lp87565-regulator.c | 11 +++++++++++ include/linux/mfd/lp87565.h | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c index eeab9d3c824b..d059ae85047a 100644 --- a/drivers/regulator/lp87565-regulator.c +++ b/drivers/regulator/lp87565-regulator.c @@ -11,6 +11,17 @@ #include +enum LP87565_regulator_id { + /* BUCK's */ + LP87565_BUCK_0, + LP87565_BUCK_1, + LP87565_BUCK_2, + LP87565_BUCK_3, + LP87565_BUCK_10, + LP87565_BUCK_23, + LP87565_BUCK_3210, +}; + #define LP87565_REGULATOR(_name, _id, _of, _ops, _n, _vr, _vm, \ _er, _em, _ev, _delay, _lr, _cr) \ [_id] = { \ diff --git a/include/linux/mfd/lp87565.h b/include/linux/mfd/lp87565.h index a8799ae50dcf..94cb581af34b 100644 --- a/include/linux/mfd/lp87565.h +++ b/include/linux/mfd/lp87565.h @@ -237,17 +237,6 @@ enum lp87565_device_type { #define LP87565_GPIO2_OUT BIT(1) #define LP87565_GPIO1_OUT BIT(0) -enum LP87565_regulator_id { - /* BUCK's */ - LP87565_BUCK_0, - LP87565_BUCK_1, - LP87565_BUCK_2, - LP87565_BUCK_3, - LP87565_BUCK_10, - LP87565_BUCK_23, - LP87565_BUCK_3210, -}; - /** * struct LP87565 - state holder for the LP87565 driver * @dev: struct device pointer for MFD device -- 2.30.0