Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp390879lqp; Sun, 9 Jun 2024 00:27:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTd1xtBy3O+YFnVInLVJno2eaXJx1YcJumRQLW+Dg0pltxSqkEbhZlqyj+wUBPYuYENDN2dBpTKzzkCeabsTq/wHPfXJOzm5xtZNspWg== X-Google-Smtp-Source: AGHT+IGfbnVzCrXtRRBc55afu4gl5MhFuHQBhJ+oDNX0mDoakdULOQaqLI7nSQ6CY94iPxvV91Xt X-Received: by 2002:a05:622a:1196:b0:440:25f2:4ad5 with SMTP id d75a77b69052e-44041cb9409mr100885971cf.52.1717918070492; Sun, 09 Jun 2024 00:27:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717918070; cv=pass; d=google.com; s=arc-20160816; b=yKdhujxu3ttSnlU28UeD7tb/HcCPVwenRJvNYpnPY5eTgf6+yJWrGsKeRAoVeUjkgG hrOGqwikjFBYRu29SKpyXFvD0O5nyoI7clLg1gTHAjWzBNQksPuPfdFUOy3EMPWu+G5u SSmgbyWxdSyZAdzJIpLXZBlmQ/wG88qyLyM1L+xMkdA7S6+QMgMqMoBzFATJQBt8kinH TSA4RAHRU6QfTzicj6lqgMe2cbzbPgFtsBxSEgM1hEc8XW4Pubm5dCzAny3wNZranM22 9NR3FrefkecGynoRKQpnj2+gYy13X7nDV1YAO0elghgMnoxfR3hRMo7CCD9M0eBhGicb xARg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=2U29RLitjyjm+6Q8R+my70s3ofK9at5MeHOQeLhmGfI=; fh=3fJWFrtiiPD+viya4NwE6ZvCPdMm1SLkJQEHzoJ8YWk=; b=ZG74rO70+x6cRVHCZq+CWNZ9/eO5dG0ILebiZQHQx3HPb/szfRFBNNQlCHMF5NkUlb x0LHLSQ3ethbUladQxcmZmqejy0zZfcmQZI2Y/OG5o7LHxquXsjzdQ6JB9tmrjNe+zca NIXIzv+P9w8oo58g6hgA/FBWNxCPql/UeA5Smd/FmEZQJ/5gWQkBRPai6/KEoDKzttlZ i8j8qgQE0Dbnv5GMAwwJgfyNMPNAPuTySVaeuz/jGQ08oTjrgd1ZCUcXEYM349p1EGfe PSgtpmryDMsXBczHlp7dOmCQxIFhmyY6VeDXBzW2fwRV2Ph3gB9GwpFVhymYXDVqTPIG 2E7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=JcPfG9fL; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-207265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b3958bsi77661121cf.400.2024.06.09.00.27.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 00:27:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=JcPfG9fL; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-207265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 35EC71C21031 for ; Sun, 9 Jun 2024 07:27:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B498200DE; Sun, 9 Jun 2024 07:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="JcPfG9fL" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23026199B0; Sun, 9 Jun 2024 07:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717918041; cv=none; b=kFOVAYfCaNeLtyJ4elufA7FNrHPo6GnbjooPEBl4lx9AQKMgH/UHsj//6HBHSIy6yko8o4J48bWSdgLIy0jdi4uOUKvZ11J3yAF6HEqOmQDLv0vNwXVMoShtSG384X9hWHvBXs5Q57a5wqnHaeeYDhV4zjNElQgX6XXAH9Osh9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717918041; c=relaxed/simple; bh=aoSODJ4LTnZo/dUXDqhr/JAwLyA+u5wjURLU6Jl0d1E=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Am7cwit17BYj1q93E+DKw5TibIkCOTeCPa3BZmEnXLHitx0IEI+EBabeUP2f2DgvY5qYxtxpG7QSc89SW3mjdh2Bv5Mim+ibb5azC2VYwJNl61k5M735yxRLblRUAPmJRL3q7DDhQroGCBA/acXpVvSL8B0mPuHO9yvgF9Gka6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=JcPfG9fL; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1717918035; bh=aoSODJ4LTnZo/dUXDqhr/JAwLyA+u5wjURLU6Jl0d1E=; h=From:Subject:Date:To:Cc:From; b=JcPfG9fLd4ra0+j308D3Ox1hlowhvNFm+NN1Kk+OgwxXzbkXva6YCoX3bT8CgURXP Mbpp8HUUwBK69+7xiZySlX3+w3YA6tLTt5zNipxsqWe6OQOC84sfFyHTI6yPZ/KXwL prBbqlgEa9jLKmnHvL9iENOOfUzcOjP6UuZMAMrc= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/5] ACPI: (mostly) battery: various fixes Date: Sun, 09 Jun 2024 09:27:11 +0200 Message-Id: <20240609-acpi-battery-cleanup-v1-0-344517bdca73@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAE9ZZWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDMwNL3cTkgkzdpMSSktSiSt3knNTEvNICXbMkA4M0i6TERMOUNCWg1oK i1LTMCrCx0bG1tQDEf+t1ZgAAAA== To: "Rafael J. Wysocki" , Len Brown Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717918035; l=712; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=aoSODJ4LTnZo/dUXDqhr/JAwLyA+u5wjURLU6Jl0d1E=; b=R6T8I+7jWMSA2L5/7bynBmIxF55gi5/2oMXSURMoEck7nLrOiS0jD/ishu8gjdasghB5GFIp1 4/aWhdId78jAypHIjMy/KkvMSeMnR5pwIvyQcn8jHWwCVXPkSRgwB4O X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (5): ACPI: AC: constify powersupply properties ACPI: SBS: constify powersupply properties ACPI: battery: constify powersupply properties ACPI: battery: use sysfs_emit over sprintf ACPI: battery: create alarm sysfs attribute atomically drivers/acpi/ac.c | 2 +- drivers/acpi/battery.c | 26 +++++++++++++++++--------- drivers/acpi/sbs.c | 6 +++--- 3 files changed, 21 insertions(+), 13 deletions(-) --- base-commit: 771ed66105de9106a6f3e4311e06451881cdac5e change-id: 20240609-acpi-battery-cleanup-6b00f8baa1df Best regards, -- Thomas Weißschuh