Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp594062lqg; Fri, 1 Mar 2024 14:59:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3Q+DguNeNhQmEv+fJ6b9oLZh2Wo802HKsqCsWWqstIKJ5ffMlKZ50OLCVj9dCYqxgLYegtDxiftA+TTaKKflwb0l/61Ga9a6rM/6x2A== X-Google-Smtp-Source: AGHT+IEhitndZpRL9RhnS9RZqIIBykAyrGRAD9DVvyGN40zS7gluIE2vOk41ndJd0oWPUN5QKEwx X-Received: by 2002:a17:902:f80d:b0:1da:1e60:f9fe with SMTP id ix13-20020a170902f80d00b001da1e60f9femr2501992plb.54.1709333950503; Fri, 01 Mar 2024 14:59:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709333950; cv=pass; d=google.com; s=arc-20160816; b=ViGhsAxXkUAHs5n+tSD3xyFkCmWTWuyGTnIGt0H9KIq8qwOAsNOWxq086YQAol/Y9y l3NlcgtiAEudhPTQodnocjDn1SU/FpV+qiZoEyZl1pJj990CaL76E7FZf+FoCgen3TTd 0WPJ+DU7j+MzTHNbosSbavNw1wuL89knjlqkA+ZAzY7CQYVCcxAQUDXUpJ4z//uPnkEG N7bl+s6T2E8t+hSRVXHUg/63y4WgcNyK175msclBYwUws3BfgK5inzYXO1lKSKjHcITy 3JV4uSJGkFNJvGnPzDbTu7DucPY+hVOtEfOnyfttr3/EdHEyhjnCYv6lwoUzac6q1ie9 7rjw== 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; bh=S0eIG5dRYiNjQ3sWkREUD7kcAd7AxYZoU8E/nfDkkMg=; fh=fY3q4WsPAcGDPf0ZQS9NFw3egwkHKwM1oSX66e6BsRQ=; b=yBK9MoBNFXUVHCI6tONvvMfiM1fLjhCATNkGnRgZKHNbDw/qAMafdCF30A+YM7oytW YUuOMeszgqTO6uzHnGFnPMflZLOYVu+nilSWIHAyb+dLXSK5op4dwYQY5atT/f9Ki2xU K6f3ZGag+GgxL1sjEw6mqvtyJBVIYtaQmehftSC22fZzovQadrsVOWQvZ9gOBjX2yvKO mQFnCP55P85KJUNADnw/10U/NejAVLzwyZKG5ozI1u7vehXx30Fjlbjyvnad8Ybmspd3 bVQF3SEdFOOqyb9iVrW097ROk6EaFoats+pYV5dnHXVk6iliEZ+A5c5cc1z5IcVl6P+S Xr3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89211-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c17-20020a170902d49100b001db8cd74953si4627065plg.112.2024.03.01.14.59.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 14:59:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89211-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89211-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3239A287E11 for ; Fri, 1 Mar 2024 22:59:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 945A45EE87; Fri, 1 Mar 2024 22:59:00 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1598C5EE68; Fri, 1 Mar 2024 22:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709333940; cv=none; b=M3ijNDkJSFd7r5KSEIwyrktayLU9sRuVdKN9mIyM7GSVkpwV6FwN4oLk4LQDekI2BZvKpotM59+JXCCTkrVK1oaiNcEpguL6f/1k5ihInsXCnHUARphQo9FjNjeSwUf6uEMnlQBz03uRVl4em9jVaqmEODzoF3sdrXY+TRrtdxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709333940; c=relaxed/simple; bh=sUNQXNzk7A9AAczsx1WMa7txCzYIhocc+2J70qriY6Y=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=KCY6Hi2IzOcrUQlC0R28wUY23cofhRxVUgQaz0QU3MMnuyH8BB3y94bn33aePQ54k4QEybI/3JWEm1GEtalks/NovioXNIZRds6xDO25MT2iUD7IzrNnjDi+zHb4jBZYv9G4rgrMLgo9OLGofg7dI8Jl5F2PjuU/gapOpxapxIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CF31C43390; Fri, 1 Mar 2024 22:58:59 +0000 (UTC) Received: by mercury (Postfix, from userid 1000) id C5E5210633B9; Fri, 1 Mar 2024 23:58:56 +0100 (CET) From: Sebastian Reichel Subject: [PATCH 0/2] power: supply: core: class cleanups Date: Fri, 01 Mar 2024 23:58:25 +0100 Message-Id: <20240301-psy-class-cleanup-v1-0-aebe8c4b6b08@collabora.com> 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: 7bit X-B4-Tracking: v=1; b=H4sIAJFd4mUC/x2MywqAIBAAfyX2nKA9qV+JDotutRAmLkUh/XvSZ WAOMwmEIpPAWCSIdLHw4bOYsgC7oV9JscsOla4aXWujgjzK7iiSSejPoDrqemNcO7SIkLsQaeH 7f07z+37yQ9fPYwAAAA== To: Linus Walleij , "Ricardo B. Marliere" , Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=983; i=sebastian.reichel@collabora.com; h=from:subject:message-id; bh=sUNQXNzk7A9AAczsx1WMa7txCzYIhocc+2J70qriY6Y=; b=owEBbQKS/ZANAwAKAdju1/PIO/qaAcsmYgBl4l2mMtNMnw/BcD4dXzRYXDs4StwkHxeBcH7Zr Lg7LDjEnfmJAjMEAAEKAB0WIQTvZg0HRj+Lcmp5VBPY7tfzyDv6mgUCZeJdpgAKCRDY7tfzyDv6 mtV7D/9eG8lLNklmAPl615dGtgGA3CbvHXyMuIyLhoZKoU1iatSzpxYOmKLkcI8aTbOwFXb6oC8 MpbHbq/ZGEqUVx+PJLZH9FIo7zYjsmCH5mOzVRG+mTFMBjAyUrrRmTdmWx+ikq035RgC4ETf3A+ 8uql3k9CKhmXHW04Q9CwRBSBN0vqjRHFERZI0/iCgpkAMMqgSqQvDHplRMMh55vCo+3edb/GVH8 UKT9FWHeJ0vWzs1B2q6VKw57CE8/WMGiBTSlKQllJHsJuwxZWspT95gKmY8j/p9Wbq2YJbLP2w1 l8IuubGoDoL1EhRv5A426AU3vzhd98OD2qT7W2bw3JrwfHlnwGT19HF1/sSjO3T5goXMivIBeaB unneyS/LIQv4KK2Z741C5MYur1wPu3viujAzN/MKcEsnQzjdc9k+cz9h87Tfct2Q9DIvye74pUp 3u1U5V3K0OPLrCL74bGkgCQLPZewFup7EHCFWfqEg1F6QjnydCZVvUrCMpvVaO3znwyWbO+fgl6 +yh3HI8XnSyq78VwdjobPRXKMeR8va7o1KsolRnhjj7lXO41xeOU4ykAqqye8zZWXEerVaPOrPJ usXM+uPIluX0eZke4keaGtebKD2UWIThbjroz4gYNaFCl9FvXiyvZ6rvlp/0nZkKWWq5JZY7SlM NljyWLjtYrFZeqg== X-Developer-Key: i=sebastian.reichel@collabora.com; a=openpgp; fpr=EF660D07463F8B726A795413D8EED7F3C83BFA9A I noticed some further possible cleanups when reviewing and applying Ricardo's patch to make power_supply_class constant. Signed-off-by: Sebastian Reichel --- Sebastian Reichel (2): power: supply: core: add power_supply_for_each_device() power: supply: core: simplify power_supply_class_init drivers/power/supply/ab8500_btemp.c | 3 +-- drivers/power/supply/ab8500_chargalg.c | 3 +-- drivers/power/supply/ab8500_charger.c | 3 +-- drivers/power/supply/ab8500_fg.c | 3 +-- drivers/power/supply/apm_power.c | 3 +-- drivers/power/supply/power_supply_core.c | 43 +++++++++++++------------------- include/linux/power_supply.h | 3 +-- 7 files changed, 23 insertions(+), 38 deletions(-) --- base-commit: 71c2cc5cbf686c2397f43cbcb51a31589bdcee7b change-id: 20240301-psy-class-cleanup-6e6711d595aa Best regards, -- Sebastian Reichel