From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Cc: Alexandre Courbot <acourbot@nvidia.com>,
azkali <a.ffcc7@gmail.com>, CTCaer <ctcaer@gmail.com>,
Sebastian Reichel <sre@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] power: supply: bq24190: Support bq24193
Date: Thu, 24 Aug 2023 14:40:10 +0200 [thread overview]
Message-ID: <46a562b5-6984-3b41-3c41-c346107b4c96@linaro.org> (raw)
In-Reply-To: <20230824112741.201353-2-linkmauve@linkmauve.fr>
On 24/08/2023 13:27, Emmanuel Gil Peyrot wrote:
> From: Alexandre Courbot <acourbot@nvidia.com>
>
> This charger is working with the driver as-is, so enable it to be probed.
>
> It is used in the Nintendo Switch for instance.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> ---
> Documentation/devicetree/bindings/power/supply/bq24190.yaml | 1 +
> drivers/power/supply/bq24190_charger.c | 2 ++
Please run scripts/checkpatch.pl and fix reported warnings. Some
warnings can be ignored, but the code here looks like it needs a fix.
Feel free to get in touch if the warning is not clear.
Bindings are always separate.
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching.
> 2 files changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/supply/bq24190.yaml b/Documentation/devicetree/bindings/power/supply/bq24190.yaml
> index d3ebc9de8c0b..92a28d3c3070 100644
> --- a/Documentation/devicetree/bindings/power/supply/bq24190.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/bq24190.yaml
> @@ -18,6 +18,7 @@ properties:
> enum:
> - ti,bq24190
> - ti,bq24192
> + - ti,bq24193
> - ti,bq24192i
> - ti,bq24196
>
> diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
> index ef8235848f56..a56122b39687 100644
> --- a/drivers/power/supply/bq24190_charger.c
> +++ b/drivers/power/supply/bq24190_charger.c
> @@ -2018,6 +2018,7 @@ static const struct dev_pm_ops bq24190_pm_ops = {
> static const struct i2c_device_id bq24190_i2c_ids[] = {
> { "bq24190" },
> { "bq24192" },
> + { "bq24193" },
> { "bq24192i" },
> { "bq24196" },
> { },
> @@ -2027,6 +2028,7 @@ MODULE_DEVICE_TABLE(i2c, bq24190_i2c_ids);
> static const struct of_device_id bq24190_of_match[] = {
> { .compatible = "ti,bq24190", },
> { .compatible = "ti,bq24192", },
> + { .compatible = "ti,bq24193", },
> { .compatible = "ti,bq24192i", },
> { .compatible = "ti,bq24196", },
We should really stop doing this. All of them are compatible, aren't they?
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-08-24 12:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 11:27 [PATCH 0/2] Add charger support for the Nintendo Switch Emmanuel Gil Peyrot
2023-08-24 11:27 ` [PATCH 1/2] power: supply: bq24190: Support bq24193 Emmanuel Gil Peyrot
2023-08-24 12:40 ` Krzysztof Kozlowski [this message]
2023-08-24 13:00 ` Emmanuel Gil Peyrot
2023-08-24 13:28 ` Krzysztof Kozlowski
2023-08-31 13:36 ` Linus Walleij
2023-08-24 11:27 ` [PATCH 2/2] power: supply: bq24190_charger: Export current regulator Emmanuel Gil Peyrot
2023-08-24 12:41 ` Krzysztof Kozlowski
2023-08-24 13:02 ` Emmanuel Gil Peyrot
2023-08-24 13:28 ` Krzysztof Kozlowski
2023-08-24 13:13 ` [PATCH v2 0/3] Add charger support for the Nintendo Switch Emmanuel Gil Peyrot
2023-08-24 13:13 ` [PATCH v2 1/3] dt-bindings: power: supply: bq24190: Add ti,bq24193 Emmanuel Gil Peyrot
2023-08-24 13:29 ` Krzysztof Kozlowski
2023-08-24 13:13 ` [PATCH v2 2/3] power: supply: bq24190_charger: Support bq24193 Emmanuel Gil Peyrot
2023-08-24 13:13 ` [PATCH v2 3/3] power: supply: bq24190_charger: Export current regulator Emmanuel Gil Peyrot
2023-09-12 19:14 ` Sebastian Reichel
2023-09-12 20:37 ` Christophe JAILLET
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=46a562b5-6984-3b41-3c41-c346107b4c96@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=a.ffcc7@gmail.com \
--cc=acourbot@nvidia.com \
--cc=conor+dt@kernel.org \
--cc=ctcaer@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linkmauve@linkmauve.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sre@kernel.org \
/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
all inboxes | Powered by JetHome®