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 42FBFC6FA8E for ; Fri, 24 Feb 2023 18:20:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8882385BCF; Fri, 24 Feb 2023 19:20:12 +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="On0QMbeR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4822285B82; Fri, 24 Feb 2023 19:18:47 +0100 (CET) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (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 B334C85B86 for ; Fri, 24 Feb 2023 19:11:29 +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-pj1-x1036.google.com with SMTP id gi3-20020a17090b110300b0023762f642dcso15755pjb.4 for ; Fri, 24 Feb 2023 10:11:29 -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=UlfhaA++I4RceUBFXMCNj9VKtp5LaO/vsr5NT5IBwwk=; b=On0QMbeRvJ2DLQfnCcFQ9132BQNxTeXrkmqY4AFlY7Vyw0exhlm+RGYwfH3SS7Q2Qf Tg4yNAWY1CcTOcocT3X6yOVAPwVVzIYBsQVomfaEEXXhrOjfNr3qJg+N4ydc9NYJXFRi oghFF0XngTG/klwg0DctCBoplVUn3kNi8t398cTruZLJd8Jt2M00CNhwBUBuwSNkQFQP gndRN3oYF3NBRjk2mdiupY6I0LYkjcSlD9PkEBZeQ0Vi4ZZ1X7eZ7q5pMEe9nuVzv7Hi cWrEmiYQfIr3ucbmz9Tl2/FOyF/UMFqTItGvOhBCMM9RAqkMCTAP4n1pcYuq7qDqubFy 8MSg== 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=UlfhaA++I4RceUBFXMCNj9VKtp5LaO/vsr5NT5IBwwk=; b=aFx4H1cLY8cWDXFPiDGzeAum7szKkL9W4E4PDR1/Jf2MrB1Z4keNvJk1jnzjZPlfL/ K2pdoHrbvorLeuo3T/px9aDrzVTglS5UEp9fGVI3Ybo2rU7s8A4VcSx4nb8QDJxlGLWP my6W1C69L+6LbJ0VDm3XXYhhoOb0HibgcGWi039fO8mHD8QMGRG3/CNDvdQJOvzr7tq8 VjM09HvW0mHzsZEI+0oUwZaE6tfen4DpzZrO4t9n2LgR9e31+CCozUZcLRWnCis0D9T8 2GxhbQ0G0Rj0ibt0B3TiNWlVRAlcEyLSq/Bvdz1fktW7CP0OmVm4ffFwNPhJ92tmJFqd sZqw== X-Gm-Message-State: AO0yUKVx3Q3NXiphoi3vJF3/tgt7JHg9ISax4QfZ9oe7pSV+LEb0t6Ly 2k9pHqwPHGwPn4ge4LBMub0= X-Google-Smtp-Source: AK7set/8sDc6kW+JCyHXcznBNhQpDkCe5yHtNPq67TjPpsLvHq9zUGJKlZ8EJIrNLeHhrUiTBtP1rQ== X-Received: by 2002:a17:90a:f0f:b0:237:8fb4:4bcc with SMTP id 15-20020a17090a0f0f00b002378fb44bccmr3318097pjy.27.1677262289165; Fri, 24 Feb 2023 10:11:29 -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 o1-20020a170902bcc100b0019c922911a2sm7513957pls.40.2023.02.24.10.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 10:11:28 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Jaehoon Chung , Lukasz Majewski Subject: [PATCH v2 24/26] power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY) Date: Fri, 24 Feb 2023 10:10:45 -0800 Message-Id: <20230224181047.2775829-25-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230224181047.2775829-1-troykiskyboundary@gmail.com> References: <20230224181047.2775829-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 This avoids an error in converting to CONFIG_IS_ENABLED(DM_PMIC). Many boards SPL code needs these definitions to compile, even if the functions are not linked. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) include/power/pmic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/power/pmic.h b/include/power/pmic.h index 70f2709bd0b..636221692d0 100644 --- a/include/power/pmic.h +++ b/include/power/pmic.h @@ -86,7 +86,7 @@ struct pmic { #endif /* CONFIG_IS_ENABLED(POWER_LEGACY) */ /* TODO: Change to CONFIG_IS_ENABLED(DM_PMIC) when SPL_DM_PMIC exists */ -#ifdef CONFIG_DM_PMIC +#if defined(CONFIG_DM_PMIC) || !CONFIG_IS_ENABLED(POWER_LEGACY) /** * U-Boot PMIC Framework * ===================== -- 2.34.1