Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1559058ybh; Tue, 14 Jul 2020 00:39:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhdi7kBGDdx6bA2OeC38Pit095tZHZMApxGJWLKRS/2ZqJ3EZm2zx0sc4QkViFmmVhxgLX X-Received: by 2002:a17:907:7290:: with SMTP id dt16mr3241306ejc.63.1594712389029; Tue, 14 Jul 2020 00:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594712389; cv=none; d=google.com; s=arc-20160816; b=MmQCBWDfe4qcEamebTowdnzInkCDmITCP3xpkV9F/D9ZLZdkVzFdLcwbskEUIIEUrh V8SmoHhTY3VDEQn4b4zu2HBf0iZgniO8Hy3DIEFTQ0A2BEGlBll3ieN8ZQ1wW60Epg1f FS2cMZQ/z0L3TFr7r4iluFNZUKD/G4LmXhheHvsPcuUp/ldfRcbx+D8/iKBAJUves326 GNF0v87u61mzfro9cvDtZvhQrzVrrUgkXUD72TNaFZPlXYqF5zqj6GjsaMiz6m/jsPd7 AdBkH9/RV247tcwuX0P2av368UVy2OGU9y4o6GRIwzBTi332svoOvxkajOJg0+mgAEZd s4rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k+ZMjHC4jr3IyiujwOg5Pn3j0oJnHdnAorcn3lC5xR4=; b=Q4Uu+6ZFrijuBS2EBMTCMTp2rLcSwY8g2K8CRK4iD6YJA19h5ZSaVKDJbq/ZcUmEJa su1OKLL8w0RpF+3M5d4AuOo25IV511+o+zvx+pYInbEz8VBGUzkj+gQP0PPL+tJI2vAX F5UO2F2l2oDDGcrWPKIh1h/Lxp9W+jPIFdRQIG4PTMgp8p+bVpkmYgO+r+Ykht1Di+V8 15TxV8+OFYRlt4cncJHuCF341rM6ni9ur1GDaSlIYB/LsJwCN09yv7Xixc3synD42dDh 8bm8Q8H2kUJo8hzIpxEU8/qE5ftE/4v8vIHXTJn4wcW9Z0VyWu1Ojk4j5f5Cxu+U5GZg Gffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="f/FYDnjU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si2744162ejx.730.2020.07.14.00.39.26; Tue, 14 Jul 2020 00:39:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="f/FYDnjU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725821AbgGNHhN (ORCPT + 99 others); Tue, 14 Jul 2020 03:37:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:37996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgGNHhN (ORCPT ); Tue, 14 Jul 2020 03:37:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C8122084C; Tue, 14 Jul 2020 07:37:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594712232; bh=40U6VTXe/lr6IqsUj4uyhrm9QvKozidHXSzQ9Zqf+jo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f/FYDnjUC84jxEf2D4SCbed8LMHWZuCqvzYjhvq+wkItyXvbngmhjmVg69RK9laqt 80scyy3fZWGgU0YOmwN5xs+oz4kxKLX2/Oc0Eb5nWJL5U/TgfjZVV2hvjm3Lt+ZK3F zwnpj6uq+s8Y5Afc6GgXETqgCOLV0orSHDh8u8lA= Date: Tue, 14 Jul 2020 09:37:11 +0200 From: Greg KH To: ivan Cc: sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, jiangfei1@xiaomi.com, Qiwu Huang Subject: Re: [PATCH v2 1/5] power: supply: core: add quick charge type property Message-ID: <20200714073711.GA689066@kroah.com> References: <38b7b1dc10cf608faceae923374791a52a450919.1594612572.git.huangqiwu@xiaomi.com> <20200713084113.GC215949@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Tue, Jul 14, 2020 at 03:31:52PM +0800, ivan wrote: > I think we should add an enumederated for this What is "this"? > > for example > > abi document > > What: /sys/class/power_supply//quick_charge_type > Date: Jul 2020 > Contact: Fei Jiang > Description: > Reports the kind of quick charge type based on different adapter power. > Different quick charge type represent different charging power. > QUICK_CHARGE_NORMAL : Charging Power <= 10W > QUICK_CHARGE_FAST : 10W < Charging Power <= 20W > QUICK_CHARGE_FLASH : 20W < Charging Power <= 30W > QUICK_CHARGE_TURBE : 30W < Charging Power <= 50W > QUICK_CHARGE_SUPER : Charging Power > 50W > > Access: Read-Only > Valid values: > 0: QUICK_CHARGE_NORMAL, > 1: QUICK_CHARGE_FAST, > 2: QUICK_CHARGE_FLASH, > 3: QUICK_CHARGE_TURBE, > 4: QUICK_CHARGE_SUPER. > > > power_supply.h > > enum power_supply_quick_charge_type { > QUICK_CHARGE_NORMAL = 0, > QUICK_CHARGE_FAST, > QUICK_CHARGE_FLASH, > QUICK_CHARGE_TURBE, > QUICK_CHARGE_SUPER, > QUICK_CHARGE_MAX, > }; That seems like a good change, why not do this? :) thanks, greg k-h