From patchwork Fri Apr 3 16:23:29 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: 212400 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 98DA3C43331 for ; Fri, 3 Apr 2020 16:23:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CCD420721 for ; Fri, 3 Apr 2020 16:23:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="ConTcMwy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404018AbgDCQXb (ORCPT ); Fri, 3 Apr 2020 12:23:31 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:56843 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728293AbgDCQXb (ORCPT ); Fri, 3 Apr 2020 12:23:31 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 48v4xF4cj3z89; Fri, 3 Apr 2020 18:23:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1585931009; bh=0CzaEgqfN263drxxDU5ar5X4YqApOdcM1FZ/ZfZc11c=; h=Date:From:Subject:To:Cc:From; b=ConTcMwycOVedQJkGyrX7J1npsFs24MHi/SGmCHT5MLCbIF1C9GoqdPwPVBeAQfIy 8zz+xnI41EAi9m3mzgWGU0o919zo7WjItC7G8V1jFN/2UsrURwxTr8cTTdycmv/bZO 0gViE6ld8TIQFipnU2Zmpe11c/5xDk5oGAbdwflbThZKbBh7lAQTpcf4gsZSgJkfWx cLEH6Hujii5qEHnjpJJg0lc66hk5dtQNR8GUgdYm0qtveZV2IG3mf6OiGF8uYvYNKs UzJ/2NulYQ8eO6R5ejyA+txe7E4w3MBEkajEuw+lwuW7bS//ScPwmCVwCsKT3VDBxR Yls3f4ONOqUng== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Fri, 03 Apr 2020 18:23:29 +0200 Message-Id: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v2 0/8] 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-5. fix and clean up HWMON labels 6-8. extend core to support input/battery/output supply point measurements --- v2: splits power_supply_hwmon_read_string() fix from extensioa (patches 3-4) Michał Mirosław (8): 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: tabularize 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 | 198 +++++++++++++++++++-- drivers/power/supply/power_supply_sysfs.c | 15 +- include/linux/power_supply.h | 9 +- 4 files changed, 210 insertions(+), 18 deletions(-)