Linux Power Management development
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Armin Wolf <W_Armin@gmx.de>
Cc: hansg@kernel.org, ilpo.jarvinen@linux.intel.com,
	 platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org, bifangknt@qq.com,
	 nicokessler@icloud.com, linux-pm@vger.kernel.org,
	wse@tuxedocomputers.com
Subject: Re: [PATCH v2 2/9] power: supply: Enable struct power_supply_ext to be construct dynamically
Date: Mon, 30 Nov 2026 19:11:01 +0100	[thread overview]
Message-ID: <aw28F0OO4vtsDZzM@venus> (raw)
In-Reply-To: <20261110165318.631010-3-W_Armin@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

Hi,

On Tue, Nov 10, 2026 at 05:50:03PM +0100, Armin Wolf wrote:
> Providers of power supply extensions currently cannot construct them
> dynamically because the pointer to the name string is declared as
> being const, even when the remaining members of
> struct power_supply_ext are not declared as being const.
> 
> Remove this pointless restriction to allow providers to dynamically
> construct power supply extensions.
> 
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---

Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>

Greetings,

-- Sebastian

>  include/linux/power_supply.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
> index 73bcb127d0fc..a0cabc139298 100644
> --- a/include/linux/power_supply.h
> +++ b/include/linux/power_supply.h
> @@ -318,7 +318,7 @@ struct power_supply_desc {
>  };
>  
>  struct power_supply_ext {
> -	const char *const name;
> +	const char *name;
>  	u8 charge_behaviours;
>  	u32 charge_types;
>  	const enum power_supply_property *properties;
> -- 
> 2.56.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-11-30 18:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 16:50 [PATCH v2 0/9] platform/x86: uniwill-laptop: Complete battery support Armin Wolf
2026-11-10 16:50 ` [PATCH v2 1/9] power: supply: core: Add power_supply_has_property_direct() Armin Wolf
2026-11-30 18:10   ` Sebastian Reichel
2026-11-10 16:50 ` [PATCH v2 2/9] power: supply: Enable struct power_supply_ext to be construct dynamically Armin Wolf
2026-11-30 18:11   ` Sebastian Reichel [this message]
2026-11-10 16:50 ` [PATCH v2 3/9] platform/x86: uniwill-laptop: Report battery cycle count Armin Wolf
2026-11-10 16:50 ` [PATCH v2 4/9] platform/x86: uniwill-laptop: Expose battery health and cycle count on all devices Armin Wolf
2026-11-10 16:50 ` [PATCH v2 5/9] platform/x86: uniwill-laptop: Expose raw battery capacity to userspace Armin Wolf
2026-11-10 16:50 ` [PATCH v2 6/9] platform/x86: uniwill-laptop: Mark sysfs attributes as const Armin Wolf
2026-11-10 16:50 ` [PATCH v2 7/9] platform/x86: uniwill-laptop: Add support for MECHREVO Yilong15Pro Armin Wolf
2026-11-10 16:50 ` [PATCH v2 8/9] platform/x86: uniwill-laptop: Add MECHREVO JIAOLONG Series-X6xR55xK Armin Wolf
2026-11-10 16:50 ` [PATCH v2 9/9] platform/x86: uniwill-laptop: Add support for XMG EVO 14 (E25) Armin Wolf
2026-11-20 20:53 ` [PATCH v2 0/9] platform/x86: uniwill-laptop: Complete battery support Armin Wolf

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=aw28F0OO4vtsDZzM@venus \
    --to=sebastian.reichel@collabora.com \
    --cc=W_Armin@gmx.de \
    --cc=bifangknt@qq.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nicokessler@icloud.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=wse@tuxedocomputers.com \
    /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