Message ID | 20230324094205.33266-4-angelogioacchino.delregno@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | MediaTek Helio X10 MT6795 - MT6331/6332 PMIC Wrapper | expand |
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; };
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(-)