From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] drm/omap/dss: Use of_property_present() to test existence of DT property
Date: Fri, 24 Jan 2025 09:22:44 +0200 [thread overview]
Message-ID: <9d53265c-0d95-4264-a661-9f4e076f4e8d@ideasonboard.com> (raw)
In-Reply-To: <20250114145840.505459-1-krzysztof.kozlowski@linaro.org>
Hi,
On 14/01/2025 16:58, Krzysztof Kozlowski wrote:
> of_property_read_bool() should be used only on boolean properties.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Changes in v2:
> 1. New patch - split from the next one.
> ---
> drivers/gpu/drm/omapdrm/dss/dss.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
> index 7b2df3185de4..319f0a1d23a7 100644
> --- a/drivers/gpu/drm/omapdrm/dss/dss.c
> +++ b/drivers/gpu/drm/omapdrm/dss/dss.c
> @@ -1236,7 +1236,7 @@ static int dss_video_pll_probe(struct dss_device *dss)
> if (!np)
> return 0;
>
> - if (of_property_read_bool(np, "syscon-pll-ctrl")) {
> + if (of_property_present(np, "syscon-pll-ctrl")) {
> dss->syscon_pll_ctrl = syscon_regmap_lookup_by_phandle(np,
> "syscon-pll-ctrl");
> if (IS_ERR(dss->syscon_pll_ctrl)) {
Thanks, applying these to drm-misc-next.
Tomi
prev parent reply other threads:[~2025-01-24 7:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-14 14:58 Krzysztof Kozlowski
2025-01-14 14:58 ` [PATCH v2 2/2] drm/omap/dss: Use syscon_regmap_lookup_by_phandle_args Krzysztof Kozlowski
2025-01-24 7:22 ` Tomi Valkeinen [this message]
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=9d53265c-0d95-4264-a661-9f4e076f4e8d@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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®