Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Sasha Levin <sashal@kernel.org>
Cc: stable@vger.kernel.org, Lucas Zampieri <lcasmz54@gmail.com>,
	Benjamin Tissoires <bentiss@kernel.org>
Subject: Re: [PATCH 6.18.y 2/3] HID: input: Introduce struct hid_battery and refactor battery code
Date: Mon, 31 Aug 2026 13:44:55 +0200	[thread overview]
Message-ID: <2026083135-exchange-unengaged-14e1@gregkh> (raw)
In-Reply-To: <20260826171414.2246040-2-sashal@kernel.org>

On Wed, Aug 26, 2026 at 01:14:13PM -0400, Sasha Levin wrote:
> From: Lucas Zampieri <lcasmz54@gmail.com>
> 
> [ Upstream commit 7a3ac62473f2bd213557e41aaab7a8f144037dfd ]
> 
> Introduce struct hid_battery to encapsulate individual battery state,
> preparing for future multi-battery support.
> 
> The new structure contains all battery-related fields previously stored
> directly in hid_device (capacity, min, max, report_type, report_id,
> charge_status, etc.). The hid_device->battery pointer type changes from
> struct power_supply* to struct hid_battery*, and all battery functions
> are refactored accordingly.
> 
> A hid_get_battery() helper is added for external drivers, with
> hid-apple.c and hid-magicmouse.c updated to use the new API. The
> hid-input-test.c KUnit tests are also updated for the new structure.
> 
> No functional changes for single-battery devices.
> 
> Signed-off-by: Lucas Zampieri <lcasmz54@gmail.com>
> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
> Stable-dep-of: d07644524b65 ("HID: input: read battery capacity from its actual report offset")
> Signed-off-by: Sasha Levin <sashal@kernel.org>

Does not apply :(

  reply	other threads:[~2026-08-31 11:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-25 13:16 FAILED: patch "[PATCH] HID: input: read battery capacity from its actual report" failed to apply to 6.18-stable tree gregkh
2026-08-26 17:14 ` [PATCH 6.18.y 1/3] HID: input: use __free(kfree) to clean up temporary buffers Sasha Levin
2026-08-26 17:14   ` [PATCH 6.18.y 2/3] HID: input: Introduce struct hid_battery and refactor battery code Sasha Levin
2026-08-31 11:44     ` Greg KH [this message]
2026-08-26 17:14   ` [PATCH 6.18.y 3/3] HID: input: read battery capacity from its actual report offset Sasha Levin

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=2026083135-exchange-unengaged-14e1@gregkh \
    --to=greg@kroah.com \
    --cc=bentiss@kernel.org \
    --cc=lcasmz54@gmail.com \
    --cc=sashal@kernel.org \
    --cc=stable@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