Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0501AC4321E for ; Sun, 4 Dec 2022 15:32:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B5861856C3; Sun, 4 Dec 2022 16:16:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qYQsSMmu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A383885636; Sun, 4 Dec 2022 16:15:24 +0100 (CET) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E21AB8561F for ; Sun, 4 Dec 2022 16:15:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ed1-x534.google.com with SMTP id e13so12559946edj.7 for ; Sun, 04 Dec 2022 07:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Oy1sxEzZkm2qi9H1H5N1k8sVQLfm9979CF3E59inFIU=; b=qYQsSMmujGebTYBJtH2QXB1Kw4OJLLYeTL3sXFNxCPQXYhdaMgU1Cgu+uRaYr1BONC hKqBFNo/nnu3knCz3DLduHRrntlVlweN8J8mDxv6jNbXA+IFc227EFaktPYpC8SKUrYO iTg6y41mIEKGmHdwLI2x3Ob8wTIP/YcbU+FqI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Oy1sxEzZkm2qi9H1H5N1k8sVQLfm9979CF3E59inFIU=; b=4pLQISaK1VJGJMJI6tJvR5FZUHfsLuFXGz9oWVZ/YbC4PmqVNP/GN63FaJnouvj6jF Q5uR9o1EhTDj9QI4v5cCizn4O3iFJYS8b26TzexedbuCSoyfWEhRxrYWrBsu2Z1ewGVj g8Y7ka07cz5hlePl+2NJMwANXCxgQL6aHCCgHW14rUlElUb14T9xghxb/tuq/5sXIouH J7wHhOAIVqxkw8wR71chy8Npj6V/CTvZtI4qU+A7spKJApZRfoOWa1Z0Q6Zwv1wO+xER e9TpKTe61HUuidQCrM+qqqCaXnBUCyE5FdKCWa4FG5TFsaGs3am2SQ2D/KGkF4/WQMzD Tb8Q== X-Gm-Message-State: ANoB5pm+XZc1cBh21vafFKdyx6Dxv/gFYVAvbWd81crMy+wgUqItHjbd CwvyU15fGKv0arI4SnpHZIxD3GSTV9Vryg5G X-Google-Smtp-Source: AA0mqf4uLm6OObcGW4C/cFo3+fv9/FvCT/1SJztEeF/q4YVywPRRPBL05g2FxXjpzmD8z78L8+CcAg== X-Received: by 2002:a05:6402:419:b0:461:e82b:bdff with SMTP id q25-20020a056402041900b00461e82bbdffmr51440028edv.370.1670166921448; Sun, 04 Dec 2022 07:15:21 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-61c7-2644-b62d-0af3.res6.spectrum.com. [2603:6081:7b00:6400:61c7:2644:b62d:af3]) by smtp.gmail.com with ESMTPSA id b21-20020aa7c915000000b00461816beef9sm5174405edt.14.2022.12.04.07.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:15:21 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 139/149] librem5: Rename CONFIG_POWER_BD71837 symbols Date: Sun, 4 Dec 2022 10:14:10 -0500 Message-Id: <20221204151420.56851-49-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221204151420.56851-1-trini@konsulko.com> References: <20221202214251.3027264-41-trini@konsulko.com> <20221204151420.56851-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Rename the CONFIG_POWER_BD71837_I2C_* symbols to not have the CONFIG prefix and be local to the file they are used in. Signed-off-by: Tom Rini --- board/purism/librem5/spl.c | 8 +++++--- include/configs/librem5.h | 4 ---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/board/purism/librem5/spl.c b/board/purism/librem5/spl.c index 1bfd948806f2..1a203b459990 100644 --- a/board/purism/librem5/spl.c +++ b/board/purism/librem5/spl.c @@ -322,6 +322,8 @@ void disable_charger_bq25895(void) } #define I2C_PMIC 0 +#define POWER_BD71837_I2C_BUS 0 +#define POWER_BD71837_I2C_ADDR 0x4B int power_bd71837_init(unsigned char bus) { @@ -336,7 +338,7 @@ int power_bd71837_init(unsigned char bus) p->name = name; p->interface = I2C_PMIC; p->number_of_regs = BD718XX_MAX_REGISTER; - p->hw.i2c.addr = CONFIG_POWER_BD71837_I2C_ADDR; + p->hw.i2c.addr = POWER_BD71837_I2C_ADDR; p->hw.i2c.tx_num = 1; p->bus = bus; @@ -357,10 +359,10 @@ int power_init_board(void) /* * Init PMIC */ - rv = power_bd71837_init(CONFIG_POWER_BD71837_I2C_BUS); + rv = power_bd71837_init(POWER_BD71837_I2C_BUS); if (rv) { log_err("%s: power_bd71837_init(%d) error %d\n", __func__, - CONFIG_POWER_BD71837_I2C_BUS, rv); + POWER_BD71837_I2C_BUS, rv); goto out; } diff --git a/include/configs/librem5.h b/include/configs/librem5.h index 9e4d373e56d5..e17190ce9c5d 100644 --- a/include/configs/librem5.h +++ b/include/configs/librem5.h @@ -19,10 +19,6 @@ #define CONFIG_SPL_ABORT_ON_RAW_IMAGE /* For RAW image gives a error info not panic */ -#define CONFIG_POWER_BD71837 -#define CONFIG_POWER_BD71837_I2C_BUS 0 -#define CONFIG_POWER_BD71837_I2C_ADDR 0x4B - #endif /* CONFIG_SPL_BUILD*/ #define CFG_SYS_FSL_USDHC_NUM 2 -- 2.25.1