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 72C53C636D7 for ; Wed, 22 Feb 2023 01:43:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B86185AEF; Wed, 22 Feb 2023 02:41:36 +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="UpuIRdbs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B8EB085A7C; Wed, 22 Feb 2023 02:39:21 +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 DBAD885A96 for ; Wed, 22 Feb 2023 02:39:04 +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 h31so3448559pgl.6 for ; Tue, 21 Feb 2023 17:39:04 -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=sO+V9utfabG8/TgT/A32eqQbWsFwRh0De8EhzqdwDz4=; b=UpuIRdbsIBcQ5uO4t4M05op6yZ3OW0gJ8gImVjXvP8N+VUlpf+Fg1uHeHBBmpBOv4L oacWSHHoHu8usfJzjbU1ii1A9C13WD0F1CYyYKQiRmI28xpBhnIMGkZuGYupdYb3xWFc WMcdm3j7zdtxwxek1apVYtRn8dL2VvmADL5+yppg28Fz3J7r3U7eSY5+FS408zYpfM4d 549ybNWtKCCT4bzEOfiiUfzoGbuqlx4an31TZPLCy8Jwd0GhFrjBuBx6ExXbW+gRttdR zFREgad7dxaFEbttn6FhzrQyAg9l/GAEOx2/IieykgpF9uNY+O4N/535gsLVUdB3yuiM fhoQ== 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=sO+V9utfabG8/TgT/A32eqQbWsFwRh0De8EhzqdwDz4=; b=RvgQRLcy1mwUNaelAgcPqGgVm73d5koFhjK0Y7mywL1xL0dL32KD7FCenwjjdsKK6w 9VTtum1U66w7QdIPey5Qr+3GOqjqbx+iLXJZ5a4lmhn6CdfHPVLP9MITKnCEv52LRuem 7m8J5Xy0LBp7R2QQ4irGq/LdG9DTeTDm+eE9F6NSlmi7ds+QThvbQlsAO00s/Z0T4esB UWsiNGiSoh2kQHGR+B3sgo2ppDp2sE+k52X8YhAl4GEQzTodcdYv1k7miC9wMGNjZnjk IqQ9RSitTyxPa431okVhXOvOfHgCij1hQTCxwBhqfJLTqM9oOL2NomBfZAGJ5FR9rUh4 XEGg== X-Gm-Message-State: AO0yUKVn9qA2Hx+WNy0cva/wGgoH0TV4USmV0NQfTnajRBOGZO1qn00l o3ylJxvs1RhEygjcA5wR2fo= X-Google-Smtp-Source: AK7set8Zb4OwYALCWVduM5aCJug3zlnwdipHzwUOy3dV1j6C2Kk0nwgT3RpvlE375/FG1hqCViErvw== X-Received: by 2002:a62:7bce:0:b0:5ce:ef1b:a80 with SMTP id w197-20020a627bce000000b005ceef1b0a80mr2888505pfc.32.1677029944159; Tue, 21 Feb 2023 17:39:04 -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.39.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:39:03 -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 v1 22/24] power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY) Date: Tue, 21 Feb 2023 17:38:19 -0800 Message-Id: <20230222013821.1144691-23-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 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 --- 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