From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
To: Axel Lin <axel.lin@ingics.com>
Cc: Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] regulator: bd718x7: Remove struct bd718xx_pmic
Date: Thu, 4 Oct 2018 10:10:33 +0300 [thread overview]
Message-ID: <20181004071033.GB2029@localhost.localdomain> (raw)
In-Reply-To: <20181004065148.26861-1-axel.lin@ingics.com>
On Thu, Oct 04, 2018 at 02:51:48PM +0800, Axel Lin wrote:
> All the fields in struct bd718xx_pmic are not really necessary.
> Remove struct bd718xx_pmic to simplify the code.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> ---
> v3: Remove the references to struct bd718xx_pmic from include/linux/mfd/rohm-bd718x7.h
>
> drivers/regulator/bd718x7-regulator.c | 59 +++++++++------------------
> include/linux/mfd/rohm-bd718x7.h | 1 -
> 2 files changed, 20 insertions(+), 40 deletions(-)
<snip>
> diff --git a/include/linux/mfd/rohm-bd718x7.h b/include/linux/mfd/rohm-bd718x7.h
> index 26acf9a92498..7d29e3599793 100644
> --- a/include/linux/mfd/rohm-bd718x7.h
> +++ b/include/linux/mfd/rohm-bd718x7.h
> @@ -321,7 +321,6 @@ enum {
> BD718XX_PWRBTN_LONG_PRESS_15S
> };
>
> -struct bd718xx_pmic;
> struct bd718xx_clk;
>
> struct bd718xx {
> --
> 2.17.1
>
Please also drop the pointer to struct bd718xx_pmic inside
the struct bd718xx.
struct bd718xx {
<snip>
struct bd71837_pmic *pmic;
struct bd71837_clk *clk;
};
Br,
Matti Vaittinen
prev parent reply other threads:[~2018-10-04 7:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-04 6:51 [PATCH v3] regulator: bd718x7: Remove struct bd718xx_pmic Axel Lin
2018-10-04 7:10 ` Matti Vaittinen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181004071033.GB2029@localhost.localdomain \
--to=matti.vaittinen@fi.rohmeurope.com \
--cc=axel.lin@ingics.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox