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 2/2] power: supply: bq24190_charger: Export current regulator
Date: Thu, 24 Aug 2023 14:41:41 +0200 [thread overview]
Message-ID: <f2f033a6-f552-b86f-250b-08fb298c9bb1@linaro.org> (raw)
In-Reply-To: <20230824112741.201353-3-linkmauve@linkmauve.fr>
On 24/08/2023 13:27, Emmanuel Gil Peyrot wrote:
> From: Alexandre Courbot <acourbot@nvidia.com>
Empty commit msg. Sorry, we cannot take such commits.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Missing SoB.
> ---
> drivers/power/supply/bq24190_charger.c | 84 ++++++++++++++++++++++++++
> 1 file changed, 84 insertions(+)
>
> diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
> index a56122b39687..8c026e86aeb3 100644
> --- a/drivers/power/supply/bq24190_charger.c
> +++ b/drivers/power/supply/bq24190_charger.c
> @@ -530,6 +530,81 @@ static int bq24190_set_otg_vbus(struct bq24190_dev_info *bdi, bool enable)
> }
>
> #ifdef CONFIG_REGULATOR
> +static int bq24190_set_charging_current(struct regulator_dev *dev,
> + int min_uA, int max_uA)
> +{
> + struct bq24190_dev_info *bdi = rdev_get_drvdata(dev);
> + u8 ss_reg;
> + int in_current_limit;
> + int ret = 0;
> +
> + dev_info(bdi->dev, "Setting charging current %d mA\n", max_uA/1000);
This is not info. It would pollute log and it is not really necessary,
because regulator framework gives such information. You can make it
debug if you need for debug purposes.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-08-24 12:42 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
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 [this message]
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=f2f033a6-f552-b86f-250b-08fb298c9bb1@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;
as well as URLs for NNTP newsgroup(s).