linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Jack Wu <wjack@google.com>
Cc: kernel-team@android.com, linux-pm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] power: supply: add dock type
Date: Mon, 3 Jan 2022 18:52:25 +0100	[thread overview]
Message-ID: <20220103175225.2w37ey76lhmqshap@earth.universe> (raw)
In-Reply-To: <20211215033410.4113857-1-wjack@google.com>

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]

Hi,

On Wed, Dec 15, 2021 at 11:34:09AM +0800, Jack Wu wrote:
> Add dock power_supply_type for the drivers which supports dock can
> register a power supply class device with POWER_SUPPLY_TYPE_DOCK.
> 
> Signed-off-by: Jack Wu <wjack@google.com>
> ---

This is missing updates to Documentation and a driver using this
feature.

-- Sebastian

>  drivers/power/supply/power_supply_sysfs.c | 1 +
>  include/linux/power_supply.h              | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c
> index c3d7cbcd4fad..53494b56bbb4 100644
> --- a/drivers/power/supply/power_supply_sysfs.c
> +++ b/drivers/power/supply/power_supply_sysfs.c
> @@ -57,6 +57,7 @@ static const char * const POWER_SUPPLY_TYPE_TEXT[] = {
>  	[POWER_SUPPLY_TYPE_USB_PD_DRP]		= "USB_PD_DRP",
>  	[POWER_SUPPLY_TYPE_APPLE_BRICK_ID]	= "BrickID",
>  	[POWER_SUPPLY_TYPE_WIRELESS]		= "Wireless",
> +	[POWER_SUPPLY_TYPE_DOCK]		= "Dock",
>  };
>  
>  static const char * const POWER_SUPPLY_USB_TYPE_TEXT[] = {
> diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
> index 9ca1f120a211..fa80eaa54242 100644
> --- a/include/linux/power_supply.h
> +++ b/include/linux/power_supply.h
> @@ -187,6 +187,7 @@ enum power_supply_type {
>  	POWER_SUPPLY_TYPE_USB_PD_DRP,		/* PD Dual Role Port */
>  	POWER_SUPPLY_TYPE_APPLE_BRICK_ID,	/* Apple Charging Method */
>  	POWER_SUPPLY_TYPE_WIRELESS,		/* Wireless */
> +	POWER_SUPPLY_TYPE_DOCK,			/* Dock Charging */
>  };
>  
>  enum power_supply_usb_type {
> -- 
> 2.34.1.173.g76aa8bc2d0-goog
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-01-03 17:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15  3:34 [PATCH v1] power: supply: add dock type Jack Wu
2022-01-03 17:52 ` Sebastian Reichel [this message]
2022-01-04 12:24 Jack Wu
2022-01-07  3:37 ` Jack Wu
2022-02-14  6:22   ` Jack Wu
2022-03-04 22:00     ` Sebastian Reichel
2022-03-07  3:31 Jack Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220103175225.2w37ey76lhmqshap@earth.universe \
    --to=sebastian.reichel@collabora.com \
    --cc=kernel-team@android.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=wjack@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).