From patchwork Thu Apr 2 14:57:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 212414 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA7BDC43331 for ; Thu, 2 Apr 2020 14:57:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1DE620719 for ; Thu, 2 Apr 2020 14:57:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="TK+rZo3m" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388830AbgDBO5E (ORCPT ); Thu, 2 Apr 2020 10:57:04 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:16195 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388239AbgDBO5E (ORCPT ); Thu, 2 Apr 2020 10:57:04 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 48tR3x59J3z9j; Thu, 2 Apr 2020 16:57:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1585839421; bh=Cnipj6qlDTsuXA/1q+W9CTZs5JFIJcQJ/Vo8HSDyOEw=; h=Date:From:Subject:To:Cc:From; b=TK+rZo3mOPWc0JHqcwy76l3X+diXRQUPW8Wk4+XYzSwq7uyO68k6hYs2PSCkHV+6L Bhg4f7wQzYaTXcQqrYDmroONiPrhzXQvA7u76iXJMQSZInTHqt3Ilpaz1mnrrKnLuK dYHzQNr1h8Zen48pWQ+xtYrfFCwAbxFWBoFc5Y6bIwjYZF1Us5VL6dXlwDyVmqusCZ SnE3VhlTI1MTRf99TI2J0Lq2tnWFtYMps+v0ZIZyFB4uJ8SCrmBds8l75ym63h1mWz ZP8uaFvfuBEy6YS7gejagG3sb0z3krI5jssR4Vn64xeI/NFa24bAtvxMJkt6MHkLiU jue152F0Lf0uQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Thu, 02 Apr 2020 16:57:01 +0200 Message-Id: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH 0/7] power: supply: core: extensions and fixes MIME-Version: 1.0 To: Andrey Smirnov , Guenter Roeck , Sebastian Reichel Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This series covers three areas of power supply class: 1-2. constify property and usb_type lists as they should not be changed after driver registration 3. make HWMON temp* labels match measurements 4. filter out unused HWMON labels 5-7. extend core to support input/battery/output supply point measurements A patchset extending bq25890 driver to use the new infrastructure will follow. Michał Mirosław (7): power: supply: core: reduce power_supply_show_usb_type() parameters power: supply: core: allow to constify property lists power: supply: core: fix HWMON temperature labels power: supply: core: hide unused HWMON labels power: supply: core: add input voltage/current measurements power: supply: core: add output voltage measurements power: supply: core: document measurement points Documentation/power/power_supply_class.rst | 6 + drivers/power/supply/power_supply_hwmon.c | 189 ++++++++++++++++++++- drivers/power/supply/power_supply_sysfs.c | 15 +- include/linux/power_supply.h | 9 +- 4 files changed, 202 insertions(+), 17 deletions(-)