From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzk@kernel.org>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH 3/3] power: charger: max14577: Add proper dt-compatible strings
Date: Sun, 10 May 2020 18:54:49 +0200 [thread overview]
Message-ID: <20200510165449.d5vuqzo4fgkxu4re@earth.universe> (raw)
In-Reply-To: <20200220145127.21273-3-m.szyprowski@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]
Hi,
On Thu, Feb 20, 2020 at 03:51:27PM +0100, Marek Szyprowski wrote:
> Add device tree compatible strings and create proper modalias structures
> to let this driver load automatically if compiled as module, because
> max14577 MFD driver creates MFD cells with such compatible strings.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> drivers/power/supply/max14577_charger.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/power/supply/max14577_charger.c b/drivers/power/supply/max14577_charger.c
> index 8a59feac6468..891ba9f6f295 100644
> --- a/drivers/power/supply/max14577_charger.c
> +++ b/drivers/power/supply/max14577_charger.c
> @@ -623,6 +623,15 @@ static const struct platform_device_id max14577_charger_id[] = {
> };
> MODULE_DEVICE_TABLE(platform, max14577_charger_id);
>
> +static const struct of_device_id of_max14577_charger_dt_match[] = {
> + { .compatible = "maxim,max77836-charger",
> + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, },
> + { .compatible = "maxim,max14577-charger",
> + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, },
> + { },
> +};
> +MODULE_DEVICE_TABLE(of, of_max14577_charger_dt_match);
> +
> static struct platform_driver max14577_charger_driver = {
> .driver = {
> .name = "max14577-charger",
Independently of the discussion in patch 1 this is missing the link
to the of table in platform_driver->driver->of_match_table.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-05-10 16:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20200220145134eucas1p288ae1910d3e8d12dc12f010ed0b07b45@eucas1p2.samsung.com>
2020-02-20 14:51 ` [PATCH 1/3] regulator: max14577: Add proper dt-compatible strings Marek Szyprowski
[not found] ` <CGME20200220145135eucas1p123c4e4523e7e6eb86b64e728d6931cee@eucas1p1.samsung.com>
2020-02-20 14:51 ` [PATCH 2/3] extcon: " Marek Szyprowski
2020-03-14 18:45 ` Krzysztof Kozlowski
[not found] ` <CGME20200220145135eucas1p1ba181cef65c7a4f91a254ee35e022f08@eucas1p1.samsung.com>
2020-02-20 14:51 ` [PATCH 3/3] power: charger: " Marek Szyprowski
2020-03-14 18:45 ` Krzysztof Kozlowski
2020-05-10 16:54 ` Sebastian Reichel [this message]
2020-02-20 16:56 ` [PATCH 1/3] regulator: " Mark Brown
2020-02-21 10:44 ` Marek Szyprowski
2020-02-21 12:38 ` Mark Brown
2020-02-21 13:23 ` Marek Szyprowski
2020-02-21 17:13 ` Mark Brown
2020-02-24 14:08 ` Marek Szyprowski
2020-02-24 20:12 ` Krzysztof Kozlowski
2020-03-06 13:51 ` Marek Szyprowski
2020-03-14 18:41 ` Krzysztof Kozlowski
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=20200510165449.d5vuqzo4fgkxu4re@earth.universe \
--to=sebastian.reichel@collabora.com \
--cc=b.zolnierkie@samsung.com \
--cc=broonie@kernel.org \
--cc=cw00.choi@samsung.com \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=myungjoo.ham@samsung.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).