Linux Power Management development
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
To: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	mark.rutland-5wv7dgnIgG8@public.gmane.org,
	wens-jdAy2FN1RRM@public.gmane.org,
	maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org,
	lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	thomas.petazzoni-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
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-SfvFxonMDyemK9LvCR3Hrw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1109 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-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
> > Reviewed-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.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

  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
     [not found] ` <cover.07d02d245f44e63775b331815e9bf584598d2e9f.1519813976.git-series.quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
2018-02-28 10:35   ` [PATCH v5 1/6] mfd: axp20x: make AXP209/22x cells probe their ADC via DT Quentin Schulz
     [not found]     ` <6652613fb10bcc8f21880af114c3b49ca267c108.1519813976.git-series.quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
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
     [not found]     ` <4795b70e4298aa0d1fc01cafe17f5b0a416e90f8.1519813976.git-series.quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
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
     [not found]     ` <c157320cf4c443e6904346c9072f46e713498161.1519813976.git-series.quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
2018-03-09 16:08       ` Sebastian Reichel
     [not found]         ` <20180309160825.fde2am6jo6qs6vp6-SfvFxonMDyemK9LvCR3Hrw@public.gmane.org>
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
     [not found]     ` <3969fa859a80afba1fe3c9b71cf3147111582520.1519813976.git-series.quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
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
     [not found]     ` <dc220101006c4df198b2d410121334a2ae98ad22.1519813976.git-series.quentin.schulz-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
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-ldxbnhwyfcjbdgjk7y7tuq@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=thomas.petazzoni-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \
    --cc=wens-jdAy2FN1RRM@public.gmane.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