From patchwork Mon Sep 13 12:09:25 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: 510100 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 02EB8C433EF for ; Mon, 13 Sep 2021 12:09:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D925860FBF for ; Mon, 13 Sep 2021 12:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239851AbhIMMKq (ORCPT ); Mon, 13 Sep 2021 08:10:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33133 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239815AbhIMMKq (ORCPT ); Mon, 13 Sep 2021 08:10:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631534970; 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=B2+4Ne/Cvx8+RH+OjobfRZpQG37gNthZScTpmUzBDh8=; b=iZLpZDc6ctflGA+iAoGqDyjg/+/Ycf/tIvLY+WBt1Aufg/rYg/TbasOrwwIeCskHx0reTY LOWfrcyl8bOc2rHzmM56mLPrTQV5pfaugtt97jND1qWeGMGn1irXCFVVpA1B5uaCexjZQA jiRtypxK+NqSBArbS+t+fqwPwGYlgMA= 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-329-dI5H8tWmPsSILKLB3nC2xg-1; Mon, 13 Sep 2021 08:09:29 -0400 X-MC-Unique: dI5H8tWmPsSILKLB3nC2xg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C11EB1006AA1; Mon, 13 Sep 2021 12:09:27 +0000 (UTC) Received: from x1.localdomain (unknown [10.39.193.132]) by smtp.corp.redhat.com (Postfix) with ESMTP id 981DC77F2C; Mon, 13 Sep 2021 12:09:26 +0000 (UTC) From: Hans de Goede To: Sebastian Reichel Cc: Hans de Goede , linux-pm@vger.kernel.org, Bastien Nocera Subject: [PATCH] docs: ABI: sysfs-class-power: Documented cycle_coint property Date: Mon, 13 Sep 2021 14:09:25 +0200 Message-Id: <20210913120925.591608-1-hdegoede@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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 --- 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..643637c6bb58 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: Possitive integer representing full cycles + **USB Properties** What: /sys/class/power_supply//input_current_limit