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 53B62C4321E for ; Sun, 4 Dec 2022 15:26:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E9F285623; Sun, 4 Dec 2022 16:15:09 +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="ScS7+sdP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93132855F6; Sun, 4 Dec 2022 16:14:42 +0100 (CET) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 8E47F852FA for ; Sun, 4 Dec 2022 16:14:38 +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-x533.google.com with SMTP id z92so12647066ede.1 for ; Sun, 04 Dec 2022 07:14:38 -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=LpWmH6bjmCozWK7nMwfHnRLtYMagAWFJCBhYIg4/t10=; b=ScS7+sdPt9c/VSt5E2DSb/7HZ12Gl6P6zHvBbj3ccrcC31wgjNtVJlPPNm0IEfiR5m dYFur7TePFEv2HVpFVVzV5X8uzLpsVh4KMj7reuVY46iHzq5yFwbJULVua2BZv0kbACS gFLfS0ez0x61hSUKIiKHbziMaLKFDYot00RIY= 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=LpWmH6bjmCozWK7nMwfHnRLtYMagAWFJCBhYIg4/t10=; b=vn2kIyavJzsCLy/Iw+i8RqwV9gzn1iICNClauq974eYKudeAzRt3EHCQLdz5QhlNK5 pWn9012O4Yb4VF9YbuCISjLu07BqrBW68FhxTdknqoQ4OGBsOUCnF5LN4+TLzWZr8JCD q6TPmMntdBi8FhT6jYjvslfdTXmyOTKmeEbVZVyRphEZ5b7XgqZIGxRu1E/jSoo7DZJI IiqX3nyTAWZVIhdR3ZgmxP2ems+RRhtK9OFpwvjq9pPgF4sLXpgrYYnVgE0venl6W+gS MHVZMFxlQiFapuCWEs5oYRfy44dqxZZ5SAzzyGg65jTgLScaImGqP31NT8JtE+GV4jxL rw5g== X-Gm-Message-State: ANoB5pkjV2I6PGZ8a17/j8GiQLYmLkuQxDi/ixCNcUNymRIVPMMqJf+A psbjZZZGibUBCMBXr8kKhSMgNhuMVttJfG1y X-Google-Smtp-Source: AA0mqf7QeffbDv7v5/bYC4/EfYtF+/3yZ98pv3xNGUAsgh/VISUXGab8D8ULzIH9mbWY82TCoVGUPQ== X-Received: by 2002:a05:6402:606:b0:46b:2f7f:6fe4 with SMTP id n6-20020a056402060600b0046b2f7f6fe4mr28449128edv.189.1670166877777; Sun, 04 Dec 2022 07:14:37 -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.14.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:14:37 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 103/149] global: Migrate CONFIG_POWER_LTC3676_I2C_ADDR to CFG Date: Sun, 4 Dec 2022 10:13:34 -0500 Message-Id: <20221204151420.56851-13-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 Perform a simple rename of CONFIG_POWER_LTC3676_I2C_ADDR to CFG_POWER_LTC3676_I2C_ADDR Signed-off-by: Tom Rini --- board/gateworks/gw_ventana/gw_ventana_spl.c | 4 ++-- drivers/power/pmic/pmic_ltc3676.c | 2 +- include/configs/gw_ventana.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index e85a00954cee..6ad994af1c64 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -851,8 +851,8 @@ void setup_pmic(void) } /* configure LTC3676 PMIC */ - else if (!i2c_probe(CONFIG_POWER_LTC3676_I2C_ADDR)) { - debug("probed LTC3676@0x%x\n", CONFIG_POWER_LTC3676_I2C_ADDR); + else if (!i2c_probe(CFG_POWER_LTC3676_I2C_ADDR)) { + debug("probed LTC3676@0x%x\n", CFG_POWER_LTC3676_I2C_ADDR); power_ltc3676_init(i2c_pmic); p = pmic_get("LTC3676_PMIC"); if (!p || pmic_probe(p)) diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c index 00c3e201cd56..af94f37b0f10 100644 --- a/drivers/power/pmic/pmic_ltc3676.c +++ b/drivers/power/pmic/pmic_ltc3676.c @@ -23,7 +23,7 @@ int power_ltc3676_init(unsigned char bus) p->name = name; p->interface = PMIC_I2C; p->number_of_regs = LTC3676_NUM_OF_REGS; - p->hw.i2c.addr = CONFIG_POWER_LTC3676_I2C_ADDR; + p->hw.i2c.addr = CFG_POWER_LTC3676_I2C_ADDR; p->hw.i2c.tx_num = 1; p->bus = bus; diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 0a9dfe736f7d..85a2ad21dc03 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -31,7 +31,7 @@ * PMIC */ #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 -#define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c +#define CFG_POWER_LTC3676_I2C_ADDR 0x3c /* Various command support */ -- 2.25.1