Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp396659lqs; Thu, 13 Jun 2024 13:15:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSAysocXWhZl2gR1Ofl8Q4s9Je+tXA7NRTQz0G4zF+KEU2EVvoKYJ096gyjz+zJJLBhOCgj3pPmuSmJAsIRCGvqRagTJAQhwnqKGISQA== X-Google-Smtp-Source: AGHT+IFwfjzgYxH7ZIv7usiCcSBICk5sHxZVS/wAorl9QJMfVQx72LoVNgvqBeCfQ8QV9c7lSix5 X-Received: by 2002:ac2:4837:0:b0:52c:80fc:e88 with SMTP id 2adb3069b0e04-52ca6e657f5mr455186e87.20.1718309748790; Thu, 13 Jun 2024 13:15:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718309748; cv=pass; d=google.com; s=arc-20160816; b=T4MYaVbQd0hsUm/6hquVhXVvL5fKYr7PLWzWtstSj2EUa7iTwG+JgHEBGR6oNU2f0e 1E4qxNLQABvpJZmFVTQLyrWno8mwEuz/ZYQ44K7ZLAo+Aap4t5zXVL/WNgUJ8etBAnfU oNtKmvGbvd7cdUfgJZxYF4Btz0djpnlcUosvUciXwjhW367Aj5xk6rxTgrQ5jEFTHBJZ vv7z2ce5K/qPeySuMDfuNoStaQww6hx23Up/bDX7UjkyieEdqeqHLQRreOsCjKmQU352 FZxIwcZ7mUFek/4Z10L2sg85Y68KvsPoCATSugXcqWF9k05exnvKR0xbD8paoBVuVSp8 CuwA== 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=BgX8CSMJ+KmVUe2Owp6419TnLr324ak0lqVimmUZJtE=; fh=+5ObgQnrCkea1AHxgRSNW3c6Bs1CPpqLGLF7R+P+iUs=; b=0uosLHo/nDLwvU4KjrUF9qAk1drhMANflZLaRY/8Z2TizkdCGqUf4Ecx2+AruSu11I Xy04DZj0/DL9RXR0XoctOuGLphhVz2eGKFe53hiTaua35VEpvMSpRjzkLOmhjXVgEhqv oMFGm/9KZq07rOL1pJf7Ch8VDgjBEX/5EFMmmbZeBib4TE0SzeAktRyrk2hPa+X3RzGh GvtgfMhTBAaSdmm5tG0jwrGntrWsuroWVe4RDmfKWYFSSdD2hvug81b7ke+wYho+GUFP gYaTdwJt7evvogg2aOaN9WMaQEP9r43jZ3Gl685Ec8Z156ccbv1Z+e9BLVPKTrG0W1rU NNfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=nPoMiCcq; 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-213974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d212fasi103915766b.119.2024.06.13.13.15.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 13:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=nPoMiCcq; 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-213974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213974-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7E4E81F24F14 for ; Thu, 13 Jun 2024 20:15:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 145D9139584; Thu, 13 Jun 2024 20:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="nPoMiCcq" 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 9120C76EEA; Thu, 13 Jun 2024 20:15:34 +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=1718309737; cv=none; b=tf72rvTUceCSVJRlYJdIUyHm8360dwh5qvdh0ERXt5ggHTdO/WcuM9isjrjSmYdvR+ojhc/+jVqVcwZow7JV+uR0Q6aiaLjQxeyZI8tZj5z4kgwaK/FI55asj4UHs5u2HNf8ifGE9NBbr2mI2LRkSTwrHHOAEcvz9Vr5NLNfNSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718309737; c=relaxed/simple; bh=vmMyMiYI0any8cgjL2aDBnasIBju/dSVBLzlwFPmmdg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=HcXBw9pSV48YHVkdwWcJE0skF6sC0VKutcpI/t5rr2/3VZ45gAee1tiDuEogxuGsvb4Aa4CA2QMUv5mIdvBCXjLJ2eoQOLtEMC7DCNDze/eDSyfcrtv7a3mx56thEpedNeN7KsxCgFB1w0bt2V7/9DEGSr7sF/5eneD5ZbzAohI= 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=nPoMiCcq; 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=1718309732; bh=vmMyMiYI0any8cgjL2aDBnasIBju/dSVBLzlwFPmmdg=; h=From:Subject:Date:To:Cc:From; b=nPoMiCcqQnsyeI+6pLB01PMEA1JHEpxfvfLut0VPEMu9GtWfyHdIBT3h+uqlBQFeh gdEuemrrjKrX66WvenqVkkegdS7I1UdGkfbb6vJDNirEBtlJbdokz5dYCFD5izhgKg S23LyU2tmBfOzsOzlW2kNmzhQ2Lelk5rcm9k1Slc= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/5] ACPI: sysfs: manage sysfs attributes through device core Date: Thu, 13 Jun 2024 22:15:31 +0200 Message-Id: <20240613-acpi-sysfs-groups-v1-0-665e0deb052a@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=H4sIAGNTa2YC/x3MQQqAIBBA0avErBswKaWuEi3ERptNiUNRSHdPW r7F/wWEMpPA1BTIdLHwsVd0bQN+c3sk5LUatNK9MmpE5xOjPBIEYz7OJOiDs4NZO2MHDbVLmQL f/3Ne3vcD1PmM9mMAAAA= To: "Rafael J. Wysocki" , Len Brown , Robert Moore Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718309732; l=919; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=vmMyMiYI0any8cgjL2aDBnasIBju/dSVBLzlwFPmmdg=; b=HInnOP4sPKW1G05cM6nzIfFR8E+RCdXHeyJG06jL6LhHLIKdlmjMycEsFtUjZTheaqhK1gUcb l3xpp/52u1/DwkbinlBYELiThgrBIeE6AIBDjVJr+fTPJpgnMiflCZ4 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Simplify the lifecycle of the sysfs attributes by letting the device core manage them. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (5): ACPI: sysfs: convert utf-16 from _STR to utf-8 only once ACPI: sysfs: use device lifecycle for _STR result ACPI: sysfs: manage attributes as attribute_group ACPI: sysfs: manage sysfs attributes through device core ACPI: sysfs: remove return value of acpi_device_setup_files() drivers/acpi/device_sysfs.c | 229 +++++++++++++++++++++----------------------- drivers/acpi/internal.h | 3 +- drivers/acpi/scan.c | 6 +- include/acpi/acpi_bus.h | 2 +- 4 files changed, 114 insertions(+), 126 deletions(-) --- base-commit: 7d91551085d3e7d5eb21c2481565b2be5288f11b change-id: 20240609-acpi-sysfs-groups-cfa756d16752 Best regards, -- Thomas Weißschuh