From patchwork Mon Sep 13 13:28:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 510099 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=-16.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham 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 0E487C433FE for ; Mon, 13 Sep 2021 13:31:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E79E561106 for ; Mon, 13 Sep 2021 13:31:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240500AbhIMNdK (ORCPT ); Mon, 13 Sep 2021 09:33:10 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60164 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242842AbhIMNaP (ORCPT ); Mon, 13 Sep 2021 09:30:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631539738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EH1NecB1TKw1kjh66jwRAJHvDqc2I9dVOEXKTtWVeus=; b=aRO7pFXBZ6H725H+TBXX8OJ0V852Z/Dpomb7h7sCIDozMhDCS4H98KKE1mgBS6YqpzmCQm pEM+lCQo5g16uPY7LBcuNRhv8cZJ9fhogLuO7g2Ijj9wyNmfd4e7rFjmNrO0SKGI7hvnmh u8Fk8Fl8bq5TOH8v+UHorE4CdxKwlDI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-297-qSTfMbPtMGWkj51YuorBoA-1; Mon, 13 Sep 2021 09:28:57 -0400 X-MC-Unique: qSTfMbPtMGWkj51YuorBoA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1CCD819200C0; Mon, 13 Sep 2021 13:28:56 +0000 (UTC) Received: from x1.localdomain (unknown [10.39.193.132]) by smtp.corp.redhat.com (Postfix) with ESMTP id BAD3F19724; Mon, 13 Sep 2021 13:28:54 +0000 (UTC) From: Hans de Goede To: Sebastian Reichel Cc: Hans de Goede , linux-pm@vger.kernel.org, Bastien Nocera Subject: [PATCH v3] docs: ABI: sysfs-class-power: Documented cycle_count property Date: Mon, 13 Sep 2021 15:28:53 +0200 Message-Id: <20210913132853.606265-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Commit c955fe8e0bdd ("POWER: Add support for cycle_count") added a POWER_SUPPLY_PROP_CYCLE_COUNT "cycle_count" property to the set of standard power-supply properties, but this was never documented, document it now. Link: https://gitlab.freedesktop.org/upower/upower/-/issues/152 Reported-by: Bastien Nocera Signed-off-by: Hans de Goede --- Changes in v3 (aka the really really typo free version) - Fix typo in "cycle_count" in Subject Changes in v2: - s/Possitive/Positive/ --- Documentation/ABI/testing/sysfs-class-power | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power index ca830c6cd809..687db552c374 100644 --- a/Documentation/ABI/testing/sysfs-class-power +++ b/Documentation/ABI/testing/sysfs-class-power @@ -480,6 +480,17 @@ Description: Valid values: Represented in microvolts +What: /sys/class/power_supply//cycle_count +Date: January 2010 +Contact: linux-pm@vger.kernel.org +Description: + Reports the number of full charge + discharge cycles the + battery has undergone. + + Access: Read + + Valid values: Positive integer representing full cycles + **USB Properties** What: /sys/class/power_supply//input_current_limit