From mboxrd@z Thu Jan 1 00:00:00 1970 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 0ABE8C636D7 for ; Wed, 22 Feb 2023 01:42:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19EAB85AE8; Wed, 22 Feb 2023 02:40:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SeqIRIfn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2BD9F85A93; Wed, 22 Feb 2023 02:39:16 +0100 (CET) Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (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 14B4D85A75 for ; Wed, 22 Feb 2023 02:39:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=troykiskyboundary@gmail.com Received: by mail-pg1-x530.google.com with SMTP id s17so3413665pgv.4 for ; Tue, 21 Feb 2023 17:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aLPEkuqTaa2nWaO7u4Iiwe6U6pyFOjNURL7fV8P0KJk=; b=SeqIRIfngALdW5eW6p78DqR7iRJn0F08zMEgmRELtCh3AMkDRJL0SGr4eBFHb8oXts GbKlJUYkoGehUvvPhLe6AisWVrEKLs984KxsNzAy0BKim37Ev0BwS7tO+KXUJmJqQIoV eE+6IjBC7LYogdPPIS1ZPLng9lIuwE0pvTAlJGF3xduNp8KIQ0X2On1DONrkfgcgnlAw ZGeG1YPqOPIH7J8cfLl6aFKAU70xSLLbiHUq9EKXB1oe3TByweVjDuhBRn5J0ZjJOnQA oZgpZ2TFEABikDEzt8R1rQkIyullH/T4XpXp1t9hUhoO7pgEIIR897wRZ12PfpxLa8MS q95w== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aLPEkuqTaa2nWaO7u4Iiwe6U6pyFOjNURL7fV8P0KJk=; b=p26TrClH8/iCInAKhlhJbiD6bugn2/2QWom1ueMKoYFBhGwmnK++byNrsECAxyhvgc LbSRhH6Qfpo8OfPmo6Y/2i7W+djaysJKlCWeFwhTbmvlBGod00TwcNAvf3qE/MEkQ7d8 FGZn3ytKYnIneRUqk92XuxmkqyRG01zdKf55dbzJO0d/hozXTlq/ATDVFBjsW9XiqAn2 a9ZbpBkd+Rd0OTKxl0Dm5g3Rm6tCJdWMXGdSshRHM6p+Upm2WnG//ONO9wviS/9wnNxe 3GwLRSKrzvKbNx+2welREqVHtv9NvQKqOh69+V8odAhqJ4bh8amKUUSPwxdLzJ3COjHl JAgw== X-Gm-Message-State: AO0yUKWR3g8NBKIrPtoChBf9ixlqQHVbKe2plHqGYC6f5JBDaMw/RAIU lOkGp5uAUj2tV2Sv773BjnU= X-Google-Smtp-Source: AK7set/yQifRgk7Dfxuex87bBBOr9UcCBG7ShrA3Q9CuON6sKajiRSuP7NxDUDjjvJTv2L7g98CllQ== X-Received: by 2002:a62:1557:0:b0:5a9:c414:3738 with SMTP id 84-20020a621557000000b005a9c4143738mr6257926pfv.29.1677029938078; Tue, 21 Feb 2023 17:38:58 -0800 (PST) Received: from OS2.boundarydevices.com. (wsip-184-189-120-117.oc.oc.cox.net. [184.189.120.117]) by smtp.gmail.com with ESMTPSA id d6-20020aa78e46000000b005accb31201fsm4200976pfr.26.2023.02.21.17.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:38:57 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Fabio Estevam Subject: [PATCH v1 16/24] freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC) Date: Tue, 21 Feb 2023 17:38:13 -0800 Message-Id: <20230222013821.1144691-17-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222013821.1144691-1-troykiskyboundary@gmail.com> References: <20230222013821.1144691-1-troykiskyboundary@gmail.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 pfuze_mode_init calls pmic_reg_read which is only available from obj-$(CONFIG_$(SPL_TPL_)DM_PMIC) += pmic-uclass.o Prepare for conversion of defined(CONFIG_DM_PMIC) to CONFIG_IS_ENABLED(DM_PMIC). Signed-off-by: Troy Kisky --- board/freescale/common/pfuze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c index 6dca22960bf..a9288820b2e 100644 --- a/board/freescale/common/pfuze.c +++ b/board/freescale/common/pfuze.c @@ -91,7 +91,7 @@ struct pmic *pfuze_common_init(unsigned char i2cbus) return p; } -#else +#elif defined(CONFIG_DM_PMIC) int pfuze_mode_init(struct udevice *dev, u32 mode) { unsigned char offset, i, switch_num; -- 2.34.1