Re: linux-next: manual merge of the drivers-x86 tree with the pm tree
From: Rafael J. Wysocki (Intel)
Date: Fri Dec 04 2026 - 10:50:29 EST
On Fri, Dec 4, 2026 at 4:45 PM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> Hi all,
>
> Today's linux-next merge of the drivers-x86 tree got a conflict in:
>
> drivers/platform/x86/uniwill/uniwill-acpi.c
>
> between commit:
>
> e8303c339ce44 ("ACPI: battery: add acpi_ prefix to the battery hook API")
>
> from the pm tree and commit:
>
> 006fc2bb612d6 ("platform/x86: uniwill-laptop: Expose raw battery capacity to userspace")
>
> from the drivers-x86 tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> diff --cc drivers/platform/x86/uniwill/uniwill-acpi.c
> index 0aee0219cf0e1,e2a6a704e942e..0000000000000
> --- a/drivers/platform/x86/uniwill/uniwill-acpi.c
> +++ b/drivers/platform/x86/uniwill/uniwill-acpi.c
> @@@ -2224,7 -2269,12 +2269,12 @@@ static int uniwill_battery_init(struct
> data->hook.add_battery = uniwill_add_battery;
> data->hook.remove_battery = uniwill_remove_battery;
>
> + sysfs_attr_init(&data->charge_full_raw_attr.attr);
> + data->charge_full_raw_attr.attr.name = "charge_full_raw";
> + data->charge_full_raw_attr.attr.mode = 0444;
> + data->charge_full_raw_attr.show_const = charge_full_raw_show;
> +
> - return devm_battery_hook_register(data->dev, &data->hook);
> + return devm_acpi_battery_hook_register(data->dev, &data->hook);
> }
>
> static int uniwill_notifier_call(struct notifier_block *nb, unsigned long action, void *dummy)
Thanks for taking care of this, the conflict resolution looks good to me.