From: Inki Dae <inki.dae@samsung.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
dri-devel@lists.freedesktop.org,
linux-samsung-soc@vger.kernel.org
Cc: Andrzej Hajda <a.hajda@samsung.com>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: Re: [PATCH 2/7] drm/exynos: dsi: use generic of_device_get_match_data helper
Date: Mon, 18 Apr 2016 17:48:34 +0900 [thread overview]
Message-ID: <57149F62.1000104@samsung.com> (raw)
In-Reply-To: <1459516666-2004-3-git-send-email-m.szyprowski@samsung.com>
Hi Marek,
2016년 04월 01일 22:17에 Marek Szyprowski 이(가) 쓴 글:
> Simplify code by replacing custom code by generic helper.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> drivers/gpu/drm/exynos/exynos_drm_dsi.c | 11 +----------
> 1 file changed, 1 insertion(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> index 63c84a106c0b..b6518df2411d 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
> @@ -532,15 +532,6 @@ static const struct of_device_id exynos_dsi_of_match[] = {
> { }
> };
>
> -static inline struct exynos_dsi_driver_data *exynos_dsi_get_driver_data(
> - struct platform_device *pdev)
> -{
> - const struct of_device_id *of_id =
> - of_match_device(exynos_dsi_of_match, &pdev->dev);
> -
> - return (struct exynos_dsi_driver_data *)of_id->data;
> -}
> -
> static void exynos_dsi_wait_for_reset(struct exynos_dsi *dsi)
> {
> if (wait_for_completion_timeout(&dsi->completed, msecs_to_jiffies(300)))
> @@ -1833,7 +1824,7 @@ static int exynos_dsi_probe(struct platform_device *pdev)
> dsi->dsi_host.dev = dev;
>
> dsi->dev = dev;
> - dsi->driver_data = exynos_dsi_get_driver_data(pdev);
> + dsi->driver_data = of_device_get_match_data(dev);
drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_probe':
drivers/gpu/drm/exynos/exynos_drm_dsi.c:1827:19: warning: assignment discards 'const' qualifier from pointer target type
Looks you missed const prefix and for patch 3 also but I can fix them.
Thanks,
Inki Dae
>
> ret = exynos_dsi_parse_dt(dsi);
> if (ret)
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-04-18 8:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 13:17 [PATCH 0/7] Exynos DRM: use of_device_get_match_data helper Marek Szyprowski
2016-04-01 13:17 ` [PATCH 1/7] drm/exynos: exynos5433_decon: use generic " Marek Szyprowski
2016-04-01 13:17 ` [PATCH 2/7] drm/exynos: dsi: " Marek Szyprowski
2016-04-18 8:48 ` Inki Dae [this message]
2016-04-19 7:37 ` [PATCH v2] " Marek Szyprowski
2016-04-01 13:17 ` [PATCH 3/7] drm/exynos: fimd: " Marek Szyprowski
2016-04-01 13:17 ` [PATCH 4/7] drm/exynos: rotator: " Marek Szyprowski
2016-04-01 13:17 ` [PATCH 5/7] drm/exynos: hdmi: " Marek Szyprowski
2016-04-01 13:17 ` [PATCH 6/7] drm/exynos: mixer: remove support for non-dt platforms Marek Szyprowski
2016-04-01 13:17 ` [PATCH 7/7] drm/exynos: mixer: use generic of_device_get_match_data helper Marek Szyprowski
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=57149F62.1000104@samsung.com \
--to=inki.dae@samsung.com \
--cc=a.hajda@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=k.kozlowski@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=sw0312.kim@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