From patchwork Mon Sep 13 12:25:01 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: 511359 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 73222C433F5 for ; Mon, 13 Sep 2021 12:25:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 547EB60F6C for ; Mon, 13 Sep 2021 12:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239998AbhIMM0v (ORCPT ); Mon, 13 Sep 2021 08:26:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:27035 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239994AbhIMM0v (ORCPT ); Mon, 13 Sep 2021 08:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631535930; 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=e+jI1xJ+aXnUn8ai0ZxHTQZeehP9E7HLnyjgYn0Oxmw=; b=hXJAI94Pb+Qdjlrx37e4aFGQAQLIcxiDIDVqsHRrjqaoQ2cGMUS2JbZtGte6Bai/aAvTZq n2UpkUDCmWsdh2ou+T6/9uaMKclQ7dFdWu2PQ5wewYEm5xrMp9pULjyCgsGqWmGF0eotbz KZAp3img4UsC+GRJ1cU4+cVM+PqvdjM= 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-585-DWKevSjpOwGuHOipjg1JkQ-1; Mon, 13 Sep 2021 08:25:25 -0400 X-MC-Unique: DWKevSjpOwGuHOipjg1JkQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 778501835ADF; Mon, 13 Sep 2021 12:25:19 +0000 (UTC) Received: from x1.localdomain (unknown [10.39.193.132]) by smtp.corp.redhat.com (Postfix) with ESMTP id CD2187883B; Mon, 13 Sep 2021 12:25:02 +0000 (UTC) From: Hans de Goede To: Sebastian Reichel Cc: Hans de Goede , linux-pm@vger.kernel.org, Bastien Nocera Subject: [PATCH v2] docs: ABI: sysfs-class-power: Documented cycle_coint property Date: Mon, 13 Sep 2021 14:25:01 +0200 Message-Id: <20210913122501.592294-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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 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