From: Joonyoung Shim <jy0922.shim@samsung.com>
To: "Semwal, Sumit" <sumit.semwal@ti.com>
Cc: inki.dae@samsung.com, kyungmin.park@samsung.com,
sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/4] drm/exynos: remove unused codes in hdmi and mixer driver
Date: Thu, 05 Apr 2012 19:53:43 +0900 [thread overview]
Message-ID: <4F7D79B7.6010201@samsung.com> (raw)
In-Reply-To: <CAB2ybb-+b-GuUQJ6Dj3Gc0UVZ1e4V3KTjSbyVzYvsHVwKeNxVw@mail.gmail.com>
On 04/05/2012 07:38 PM, Semwal, Sumit wrote:
> Hi Joonyoung,
>
> On Thu, Apr 5, 2012 at 3:53 PM, Joonyoung Shim<jy0922.shim@samsung.com> wrote:
>> Some defines and members in struct mixer_context aren't used, remove
>> them.
>>
>> Signed-off-by: Joonyoung Shim<jy0922.shim@samsung.com>
>> Signed-off-by: Kyungmin Park<kyungmin.park@samsung.com>
>> ---
>> drivers/gpu/drm/exynos/exynos_hdmi.c | 1 -
>> drivers/gpu/drm/exynos/exynos_mixer.c | 21 +++++++++------------
>> 2 files changed, 9 insertions(+), 13 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
>> index 0a71317..340424f 100644
>> --- a/drivers/gpu/drm/exynos/exynos_hdmi.c
>> +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
>> @@ -40,7 +40,6 @@
>>
>> #include "exynos_hdmi.h"
>>
>> -#define HDMI_OVERLAY_NUMBER 3
>> #define MAX_WIDTH 1920
>> #define MAX_HEIGHT 1080
>> #define get_hdmi_context(dev) platform_get_drvdata(to_platform_device(dev))
>> diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
>> index 495a7af..563092e 100644
>> --- a/drivers/gpu/drm/exynos/exynos_mixer.c
>> +++ b/drivers/gpu/drm/exynos/exynos_mixer.c
>> @@ -37,7 +37,8 @@
>> #include "exynos_drm_drv.h"
>> #include "exynos_drm_hdmi.h"
>>
>> -#define HDMI_OVERLAY_NUMBER 3
>> +#define MIXER_WIN_NR 3
>> +#define MIXER_DEFAULT_WIN 0
> Patch description says 'remove unused codes...', but looks like you're
> adding more codes here? I think you should do the addition / deletion
> in separate patches.
"remove unused codes" is incorrect a bit, but please think this is just code
cleanup to remove unnecessary codes.
Thanks.
>> #define get_mixer_context(dev) platform_get_drvdata(to_platform_device(dev))
>>
>> @@ -75,16 +76,12 @@ struct mixer_resources {
>> };
>>
>> struct mixer_context {
>> - struct fb_videomode *default_timing;
>> - unsigned int default_win;
>> - unsigned int default_bpp;
>> unsigned int irq;
>> int pipe;
>> bool interlace;
>> - bool vp_enabled;
>>
>> struct mixer_resources mixer_res;
>> - struct hdmi_win_data win_data[HDMI_OVERLAY_NUMBER];
>> + struct hdmi_win_data win_data[MIXER_WIN_NR];
>> };
>>
>> static const u8 filter_y_horiz_tap8[] = {
>> @@ -643,9 +640,9 @@ static void mixer_win_mode_set(void *ctx,
>>
>> win = overlay->zpos;
>> if (win == DEFAULT_ZPOS)
>> - win = mixer_ctx->default_win;
>> + win = MIXER_DEFAULT_WIN;
>>
>> - if (win< 0 || win> HDMI_OVERLAY_NUMBER) {
>> + if (win< 0 || win> MIXER_WIN_NR) {
>> DRM_ERROR("overlay plane[%d] is wrong\n", win);
>> return;
>> }
>> @@ -683,9 +680,9 @@ static void mixer_win_commit(void *ctx, int zpos)
>> DRM_DEBUG_KMS("[%d] %s, win: %d\n", __LINE__, __func__, win);
>>
>> if (win == DEFAULT_ZPOS)
>> - win = mixer_ctx->default_win;
>> + win = MIXER_DEFAULT_WIN;
>>
>> - if (win< 0 || win> HDMI_OVERLAY_NUMBER) {
>> + if (win< 0 || win> MIXER_WIN_NR) {
>> DRM_ERROR("overlay plane[%d] is wrong\n", win);
>> return;
>> }
>> @@ -706,9 +703,9 @@ static void mixer_win_disable(void *ctx, int zpos)
>> DRM_DEBUG_KMS("[%d] %s, win: %d\n", __LINE__, __func__, win);
>>
>> if (win == DEFAULT_ZPOS)
>> - win = mixer_ctx->default_win;
>> + win = MIXER_DEFAULT_WIN;
>>
>> - if (win< 0 || win> HDMI_OVERLAY_NUMBER) {
>> + if (win< 0 || win> MIXER_WIN_NR) {
>> DRM_ERROR("overlay plane[%d] is wrong\n", win);
>> return;
>> }
>> --
>> 1.7.5.4
>>
>> _______________________________________________
>> dri-devel mailing list
>> dri-devel@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dri-devel
> Best regards,
> ~Sumit.
>
next prev parent reply other threads:[~2012-04-05 10:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 10:23 [PATCH 0/4] code cleanup patchset of drm/exynos Joonyoung Shim
2012-04-05 10:23 ` [PATCH 1/4] drm/exynos: remove unnecessary type conversion of hdmi and mixer Joonyoung Shim
2012-04-05 10:23 ` [PATCH 2/4] drm/exynos: remove unused codes in hdmi and mixer driver Joonyoung Shim
2012-04-05 10:38 ` Semwal, Sumit
2012-04-05 10:53 ` Joonyoung Shim [this message]
2012-04-05 11:00 ` Daniel Vetter
2012-04-05 11:02 ` Joonyoung Shim
2012-04-05 10:23 ` [PATCH 3/4] drm/exynos: fix struct for operation callback functions to driver name Joonyoung Shim
2012-04-05 10:23 ` [PATCH 4/4] drm/exynos: fix to pointer manager member of struct exynos_drm_subdrv Joonyoung Shim
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=4F7D79B7.6010201@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=sumit.semwal@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.