Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1621661pxp; Mon, 21 Mar 2022 00:45:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJF/3dmDqO6F5bhFCeflKoGa6OxgIIuCR+2ZqaC9zp5ABZmk235qrHwILoP3lV5xv/qrb7 X-Received: by 2002:a63:d14:0:b0:381:af18:8259 with SMTP id c20-20020a630d14000000b00381af188259mr16872255pgl.309.1647848756345; Mon, 21 Mar 2022 00:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647848756; cv=none; d=google.com; s=arc-20160816; b=C5//QHJeWfW5Ukv766zpC593AiNOYhTMwe2K/ShrxrcNDzugwK+PYQ09cs4iIoQakx ilTQjdeS6Jlk1Z51pPU1Omw3xpMH3XOTRqnq+Flic42pX4Utb00TAhhIf9xzW6WsNPdU SSg8R+Y494rB66e369ckv/sne/UclRCDfr8xag5ScvbjpYKvou/Sqxh9vc/a/LaZsZo/ crvZJwH5OEuSUpydTFE+kuHajX4CWlzfIHq7PVtfS7YtQNDDC9hZKT26hik+AqQ1sAoV bDO/QduxES1rhyfnK56Ddi0H+HMf037FtKuZXBnOY/TwR86y+CNj/E0i3ENycVMOD7d8 TNEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=mD6XhN/+uKcLOlL8/0k4QY8L/Ndcq8RVZXg0yhTg/d0=; b=kkR4qlsQzglk7+gMtszTltYAp0cRp3n+yaHnkuYSVlo5epm/LlhDEzebG/72Wl6U5U lJcjcudyer+q58E2BE/COAcPlUm9wAS7H6UlsSMniNo+L1pBvzf10cmgm7LE0oMdszdu M/3G6uUV1D56377WHXN1JYybjoZDxqlWp/Q20rpoTDkq6eHQX1TCacg54v7s9czCzIsi HzI++lGEyZZX1tGbocahUujUETCHawEwBwTwRzXG7UOwYTpdTfSDxqWadGFo+2dpRiV5 zF48j6l8pXwgKT+6scTjurMkGvEFFkGIhizDNbEZ8JhoE9ROFkV0ZwZTx+WnWLGHk0Ym yGDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a654604000000b003816043ef30si13014003pgq.293.2022.03.21.00.45.44; Mon, 21 Mar 2022 00:45:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234179AbiCUDwy (ORCPT + 99 others); Sun, 20 Mar 2022 23:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiCUDwx (ORCPT ); Sun, 20 Mar 2022 23:52:53 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB8EF985A4; Sun, 20 Mar 2022 20:51:22 -0700 (PDT) X-UUID: 845adcbb2f6542df887207f1b9dacf57-20220321 X-UUID: 845adcbb2f6542df887207f1b9dacf57-20220321 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1657627719; Mon, 21 Mar 2022 11:51:15 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 21 Mar 2022 11:51:14 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 21 Mar 2022 11:51:14 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 21 Mar 2022 11:51:14 +0800 Message-ID: <8b08fff02623d04998ccdde2a15fab9c75386886.camel@mediatek.com> Subject: Re: [PATCH v2 1/2] regulator: mt6366: Add support for MT6366 regulator From: Johnson Wang To: Mark Brown CC: , , , , , Date: Mon, 21 Mar 2022 11:51:14 +0800 In-Reply-To: References: <20220317030402.24894-1-johnson.wang@mediatek.com> <20220317030402.24894-2-johnson.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Fri, 2022-03-18 at 20:06 +0000, Mark Brown wrote: > On Thu, Mar 17, 2022 at 11:04:01AM +0800, Johnson Wang wrote: > > The MT6366 is a regulator found on boards based on MediaTek MT8186 > > and > > probably other SoCs. It is a so called pmic and connects as a slave > > to > > SoC using SPI, wrapped inside the pmic-wrapper. > > This doesn't build, please resend once the dependencies have been > merged: This patch depends on [1], it use MARCO defined from [1]. [1] has been merged into linux-next and isn't merged into mainline yet. I will resend this once the dependencies have been merged. If you have any other suggestion, please let me know. Thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/include/linux/mfd?id=c47383f849097c2b3547e28365578cd9e5811378 BRs, Johnson Wang > /mnt/kernel/drivers/regulator/mt6358-regulator.c:51:15: error: > 'MT6358_BUCK_VCORE_SSHUB_ELR0' undeclared here (not in a function); > did you mean 'MT6358_BUCK_VCORE_ELR0'? > 51 | .vsel_reg = MT6358_BUCK_##vreg##_ELR0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:508:2: note: in > expansion of macro 'MT6358_BUCK' > 508 | MT6358_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:53:17: error: > 'MT6358_BUCK_VCORE_SSHUB_CON0' undeclared here (not in a function); > did you mean 'MT6358_BUCK_VCORE_CON0'? > 53 | .enable_reg = MT6358_BUCK_##vreg##_CON0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:508:2: note: in > expansion of macro 'MT6358_BUCK' > 508 | MT6358_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:57:16: error: > 'MT6358_BUCK_VCORE_SSHUB_DBG1' undeclared here (not in a function); > did you mean 'MT6358_BUCK_VCORE_DBG1'? > 57 | .status_reg = MT6358_BUCK_##vreg##_DBG1, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:508:2: note: in > expansion of macro 'MT6358_BUCK' > 508 | MT6358_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:593:7: error: > 'MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1' undeclared here (not in a > function); did you mean 'MT6358_ID_VSRAM_OTHERS_SSHUB'? > 593 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:103:15: note: in > definition of macro 'MT6358_LDO1' > 103 | .vsel_reg = vosel, \ > | ^~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:105:17: error: > 'MT6358_LDO_VSRAM_OTHERS_SSHUB_CON0' undeclared here (not in a > function); did you mean 'MT6358_LDO_VSRAM_OTHERS_CON0'? > 105 | .enable_reg = MT6358_LDO_##vreg##_CON0, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:590:2: note: in > expansion of macro 'MT6358_LDO1' > 590 | MT6358_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:110:16: error: > 'MT6358_LDO_VSRAM_OTHERS_SSHUB_DBG1' undeclared here (not in a > function); did you mean 'MT6358_LDO_VSRAM_OTHERS_DBG1'? > 110 | .status_reg = MT6358_LDO_##vreg##_DBG1, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:590:2: note: in > expansion of macro 'MT6358_LDO1' > 590 | MT6358_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:147:15: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 147 | .vsel_reg = MT6358_BUCK_##vreg##_ELR0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:147:15: note: (near > initialization for 'mt6366_regulators[36].desc.vsel_reg') > 147 | .vsel_reg = MT6358_BUCK_##vreg##_ELR0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:147:15: error: > initializer element is not constant > 147 | .vsel_reg = MT6358_BUCK_##vreg##_ELR0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:147:15: note: (near > initialization for 'mt6366_regulators[36].desc.vsel_reg') > 147 | .vsel_reg = MT6358_BUCK_##vreg##_ELR0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:149:17: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 149 | .enable_reg = MT6358_BUCK_##vreg##_CON0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:149:17: note: (near > initialization for 'mt6366_regulators[36].desc.enable_reg') > 149 | .enable_reg = MT6358_BUCK_##vreg##_CON0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:149:17: error: > initializer element is not constant > 149 | .enable_reg = MT6358_BUCK_##vreg##_CON0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:149:17: note: (near > initialization for 'mt6366_regulators[36].desc.enable_reg') > 149 | .enable_reg = MT6358_BUCK_##vreg##_CON0, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:153:16: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 153 | .status_reg = MT6358_BUCK_##vreg##_DBG1, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:153:16: note: (near > initialization for 'mt6366_regulators[36].status_reg') > 153 | .status_reg = MT6358_BUCK_##vreg##_DBG1, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:153:16: error: > initializer element is not constant > 153 | .status_reg = MT6358_BUCK_##vreg##_DBG1, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:153:16: note: (near > initialization for 'mt6366_regulators[36].status_reg') > 153 | .status_reg = MT6358_BUCK_##vreg##_DBG1, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:610:2: note: in > expansion of macro 'MT6366_BUCK' > 610 | MT6366_BUCK("buck_vcore_sshub", VCORE_SSHUB, 500000, > 1293750, 6250, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:611:31: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 611 | buck_volt_range1, 0x7f, MT6358_BUCK_VCORE_SSHUB_ELR0, > 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:155:17: note: in > definition of macro 'MT6366_BUCK' > 155 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:611:31: note: (near > initialization for 'mt6366_regulators[36].da_vsel_reg') > 611 | buck_volt_range1, 0x7f, MT6358_BUCK_VCORE_SSHUB_ELR0, > 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:155:17: note: in > definition of macro 'MT6366_BUCK' > 155 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:611:31: error: > initializer element is not constant > 611 | buck_volt_range1, 0x7f, MT6358_BUCK_VCORE_SSHUB_ELR0, > 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:155:17: note: in > definition of macro 'MT6366_BUCK' > 155 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:611:31: note: (near > initialization for 'mt6366_regulators[36].da_vsel_reg') > 611 | buck_volt_range1, 0x7f, MT6358_BUCK_VCORE_SSHUB_ELR0, > 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:155:17: note: in > definition of macro 'MT6366_BUCK' > 155 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:684:7: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 684 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:199:15: note: in > definition of macro 'MT6366_LDO1' > 199 | .vsel_reg = vosel, \ > | ^~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:684:7: note: (near > initialization for 'mt6366_regulators[37].desc.vsel_reg') > 684 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:199:15: note: in > definition of macro 'MT6366_LDO1' > 199 | .vsel_reg = vosel, \ > | ^~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:684:7: error: > initializer element is not constant > 684 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:199:15: note: in > definition of macro 'MT6366_LDO1' > 199 | .vsel_reg = vosel, \ > | ^~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:684:7: note: (near > initialization for 'mt6366_regulators[37].desc.vsel_reg') > 684 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:199:15: note: in > definition of macro 'MT6366_LDO1' > 199 | .vsel_reg = vosel, \ > | ^~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:201:17: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 201 | .enable_reg = MT6358_LDO_##vreg##_CON0, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:201:17: note: (near > initialization for 'mt6366_regulators[37].desc.enable_reg') > 201 | .enable_reg = MT6358_LDO_##vreg##_CON0, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:201:17: error: > initializer element is not constant > 201 | .enable_reg = MT6358_LDO_##vreg##_CON0, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:201:17: note: (near > initialization for 'mt6366_regulators[37].desc.enable_reg') > 201 | .enable_reg = MT6358_LDO_##vreg##_CON0, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:683:7: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 683 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:204:17: note: in > definition of macro 'MT6366_LDO1' > 204 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:683:7: note: (near > initialization for 'mt6366_regulators[37].da_vsel_reg') > 683 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:204:17: note: in > definition of macro 'MT6366_LDO1' > 204 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:683:7: error: > initializer element is not constant > 683 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:204:17: note: in > definition of macro 'MT6366_LDO1' > 204 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:683:7: note: (near > initialization for 'mt6366_regulators[37].da_vsel_reg') > 683 | MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1, 0x7f, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:204:17: note: in > definition of macro 'MT6366_LDO1' > 204 | .da_vsel_reg = _da_vsel_reg, \ > | ^~~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:206:16: warning: > initialization of 'unsigned int' from 'struct mt6358_regulator_info > *' makes integer from pointer without a cast [-Wint-conversion] > 206 | .status_reg = MT6358_LDO_##vreg##_DBG1, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:206:16: note: (near > initialization for 'mt6366_regulators[37].status_reg') > 206 | .status_reg = MT6358_LDO_##vreg##_DBG1, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:206:16: error: > initializer element is not constant > 206 | .status_reg = MT6358_LDO_##vreg##_DBG1, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:206:16: note: (near > initialization for 'mt6366_regulators[37].status_reg') > 206 | .status_reg = MT6358_LDO_##vreg##_DBG1, \ > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c:681:2: note: in > expansion of macro 'MT6366_LDO1' > 681 | MT6366_LDO1("ldo_vsram_others_sshub", VSRAM_OTHERS_SSHUB, > 500000, > | ^~~~~~~~~~~ > /mnt/kernel/drivers/regulator/mt6358-regulator.c: In function > 'mt6358_regulator_probe': > /mnt/kernel/drivers/regulator/mt6358-regulator.c:701:25: error: > 'MT6366_CHIP_ID' undeclared (first use in this function); did you > mean 'MT6397_CHIP_ID'? > 701 | if (mt6397->chip_id == MT6366_CHIP_ID) { > | ^~~~~~~~~~~~~~ > | MT6397_CHIP_ID > /mnt/kernel/drivers/regulator/mt6358-regulator.c:701:25: note: each > undeclared identifier is reported only once for each function it > appears in > /mnt/kernel/drivers/regulator/mt6358-regulator.c:701:22: warning: > comparison between pointer and integer > 701 | if (mt6397->chip_id == MT6366_CHIP_ID) { > | ^~ >