From: Quentin Schulz <quentin.schulz@bootlin.com>
To: Sebastian Reichel <sre@kernel.org>
Cc: robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org,
maxime.ripard@bootlin.com, lee.jones@linaro.org,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com,
linux-sunxi@googlegroups.com
Subject: Re: [PATCH v5 3/6] power: supply: axp20x_battery: use data struct for variant specific code
Date: Fri, 9 Mar 2018 18:04:22 +0100 [thread overview]
Message-ID: <20180309170422.svf2covhrtxgnj5o@qschulz> (raw)
In-Reply-To: <20180309160825.fde2am6jo6qs6vp6@earth.universe>
[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]
Hi Sebastian,
On Fri, Mar 09, 2018 at 05:08:25PM +0100, Sebastian Reichel wrote:
> Hi Quentin,
>
> On Wed, Feb 28, 2018 at 11:35:58AM +0100, Quentin Schulz wrote:
> > We used to use IDs to select a function or a feature depending on the
> > variant. It's easier to maintain the code by adding data structure
> > storing the few differences between variants so that we don't add a pile
> > of if conditions.
> >
> > Let's use this data structure and update the code to use it.
> >
> > Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
> > Reviewed-by: Chen-Yu Tsai <wens@csie.org>
> > ---
>
> I applied this, but modified the patch slightly, so that
> it actually calls your new set_max_voltage() callback in
> axp20x_battery_set_prop(). Please check that the resulting
> patch looks correct to you:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git/commit/?h=for-next&id=648badd797c762a713b48afc3b67d56abdd0073b
>
You actually fixed an error in this patch while doing so, so thank you :)
Looks good to me.
Quentin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2018-03-09 17:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 10:35 [PATCH v5 0/6] add support for AXP813 ADC and battery power supply Quentin Schulz
2018-02-28 10:35 ` [PATCH v5 1/6] mfd: axp20x: make AXP209/22x cells probe their ADC via DT Quentin Schulz
2018-03-07 16:11 ` Lee Jones
2018-02-28 10:35 ` [PATCH v5 2/6] mfd: axp20x: probe axp20x_adc driver for AXP813 Quentin Schulz
2018-03-07 16:12 ` Lee Jones
2018-02-28 10:35 ` [PATCH v5 3/6] power: supply: axp20x_battery: use data struct for variant specific code Quentin Schulz
2018-03-09 16:08 ` Sebastian Reichel
2018-03-09 17:04 ` Quentin Schulz [this message]
2018-02-28 10:35 ` [PATCH v5 4/6] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding Quentin Schulz
2018-03-09 16:08 ` Sebastian Reichel
2018-02-28 10:36 ` [PATCH v5 5/6] power: supply: axp20x_battery: add support for AXP813 Quentin Schulz
2018-03-09 16:09 ` Sebastian Reichel
2018-02-28 10:36 ` [PATCH v5 6/6] mfd: axp20x: add battery power supply cell " Quentin Schulz
2018-03-07 16:12 ` Lee Jones
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=20180309170422.svf2covhrtxgnj5o@qschulz \
--to=quentin.schulz@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=robh+dt@kernel.org \
--cc=sre@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=wens@csie.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
all inboxes | Powered by JetHome®