Message ID | 20230324094205.33266-4-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp495884vqo; Fri, 24 Mar 2023 02:47:07 -0700 (PDT) X-Google-Smtp-Source: AKy350adVy8242N4j3MrVIY7Y1OzKjlaV/+vg4eBhIlp4xUV7Q0DmgK+2kh+bT2ecbxCk+kthHh/ X-Received: by 2002:a17:902:e54c:b0:1a0:65ae:df18 with SMTP id n12-20020a170902e54c00b001a065aedf18mr1936349plf.55.1679651227303; Fri, 24 Mar 2023 02:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679651227; cv=none; d=google.com; s=arc-20160816; b=B2FMeqhqyxM0qZamPv999fqBKd5G5yGqQf8W3VlPrK2qGvc22wclGLwqYiMzcxz3Bw GLX1dWwvLN7xFT7brGDRDJBRELgruLsZjZKAAyFdKajIVu4E2kVJLE+xQSHKFBrEBi+q LJ7vVvY+Xygq8QGCXdYAtXXyV77Z4m8tL7EyQcN+Dd11Dn7CipkPhL0g483EstvYF/Iz RbCLcMgW4wePggNvdXUCWO1yKJaK0zsnpdBADP7T1/tdwNHelmFzT+kXpKG4Y7PEvPwV g0B35dlJSwUqsEW1/ZWFkD7HI5GSGbPDHqEq0DttEgy1Vipvgq4Uqk+0mQlQqnF6rLgJ rnwQ== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=XpFp6S3Zsyxwv0iaspLTRsr9iJyWgukoaO60C6T2spo=; b=VX66ZVfhZEL/43xmfEg15ZVMx8w5xnrkXW2uaIM52IREARiK4tIMhjQQcW9Tp5KB4f 6RB1fvl0g3arvRrZvthmd/yihoWMnEagB/EqoBlwLd5IkvZXymP3o8AcH/lUf5BcXbo5 sjpnvUAHaN0Py5F+b3FDm9gKxye+IFvDxaNULuMVe7ZpslhyOKnPGRKoQ7UANbxhYbdo xqdZJhSy60/GOTi1VQvT5EXb6E+CBHAYFv2A9ZRc+totImXfco+iYOcz+kHsxu1FYJDE jKBOIXXncLnDcs4NopgCMn19m70jjo5McR3uAUbkCptZC6Tag18+nSLXnevQr+Grtlj1 gchg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iPFV21rw; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a170902ec8d00b001a1a5d21d4csi22969562plg.208.2023.03.24.02.46.55; Fri, 24 Mar 2023 02:47:07 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=iPFV21rw; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231753AbjCXJmn (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 05:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbjCXJmW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 05:42:22 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5116112852; Fri, 24 Mar 2023 02:42:15 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2D9EA6603114; Fri, 24 Mar 2023 09:42:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679650933; bh=jE2h/ittsn0tSizCPWhMSnonPGhnh+XeahgZ0uy3c4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iPFV21rwVMMf5SZqpzqd3iSEj9+NI3BmlLTaK4wWg8pCpUS52lpKpbJI7+al8BSXI UDTm8uCnjhWaalb0V3XWMmmt49hwiqpMP/w4YzGetYIKrHx3K7Lx5PGM+80Uel9Ly3 ro4fpUqs4SpTTat0exOqR4fM2iGAj1zpmL9bdEDCITEulwwW4PY94L8xG+Byk/ZHsi cq8d1kJ+rOWoMdiz0PyGk25mlf59HKB0KeHKgMHOfntDmb4+Xho85g0R47ZJ7CUM/4 2kSW+NKXTXbKqPQGRcrS88ppTpW332406XzKlRCZM1vybBXkn7MxfzmUy2D5pUlCGS Tt+5hX8bSIl8Q== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, amergnat@baylibre.com, flora.fu@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v2 3/6] soc: mediatek: pwrap: Add kerneldoc for struct pwrap_slv_type Date: Fri, 24 Mar 2023 10:42:02 +0100 Message-Id: <20230324094205.33266-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324094205.33266-1-angelogioacchino.delregno@collabora.com> References: <20230324094205.33266-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761241965592406245?= X-GMAIL-MSGID: =?utf-8?q?1761241965592406245?= |
Series |
MediaTek Helio X10 MT6795 - MT6331/6332 PMIC Wrapper
|
|
Commit Message
AngeloGioacchino Del Regno
March 24, 2023, 9:42 a.m. UTC
In preparation for adding new members with name abbreviations describe
the struct pwrap_slv_type with kerneldoc to enhance human readability.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/soc/mediatek/mtk-pmic-wrap.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Comments
Le ven. 24 mars 2023 à 10:42, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> a écrit : > > In preparation for adding new members with name abbreviations describe > the struct pwrap_slv_type with kerneldoc to enhance human readability. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > drivers/soc/mediatek/mtk-pmic-wrap.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c > index 5c500be48f7c..a33a1b1820cb 100644 > --- a/drivers/soc/mediatek/mtk-pmic-wrap.c > +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c > @@ -1218,11 +1218,17 @@ struct pwrap_slv_regops { > int (*pwrap_write)(struct pmic_wrapper *wrp, u32 adr, u32 wdata); > }; > > +/** > + * struct pwrap_slv_type - PMIC device wrapper definitions > + * @dew_regs: Device Wrapper (DeW) register offsets > + * @type: PMIC Type (model) > + * @regops: Register R/W ops > + * @caps: Capability flags for the target device > + */ > struct pwrap_slv_type { > const u32 *dew_regs; > enum pmic_type type; > const struct pwrap_slv_regops *regops; > - /* Flags indicating the capability for the target slave */ > u32 caps; > }; Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Regards, Alexandre
diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 5c500be48f7c..a33a1b1820cb 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -1218,11 +1218,17 @@ struct pwrap_slv_regops { int (*pwrap_write)(struct pmic_wrapper *wrp, u32 adr, u32 wdata); }; +/** + * struct pwrap_slv_type - PMIC device wrapper definitions + * @dew_regs: Device Wrapper (DeW) register offsets + * @type: PMIC Type (model) + * @regops: Register R/W ops + * @caps: Capability flags for the target device + */ struct pwrap_slv_type { const u32 *dew_regs; enum pmic_type type; const struct pwrap_slv_regops *regops; - /* Flags indicating the capability for the target slave */ u32 caps; };