Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124AbbEKN3d (ORCPT ); Mon, 11 May 2015 09:29:33 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:10276 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751023AbbEKN32 convert rfc822-to-8bit (ORCPT ); Mon, 11 May 2015 09:29:28 -0400 X-AuditID: cbfee691-f79ca6d00000456a-df-5550aeb552b6 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT Message-id: <5550AEB5.4020709@samsung.com> Date: Mon, 11 May 2015 22:29:25 +0900 From: Inki Dae User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 To: Krzysztof Kozlowski Cc: Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Kukjin Kim , Jingoo Han , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Javier Martinez Canillas , Krzysztof Kozlowski Subject: Re: [RFT PATCH v2 2/3] drm/exynos: Constify exynos_drm_crtc_ops References: <1430957086-25005-1-git-send-email-k.kozlowski@samsung.com> <1430957086-25005-3-git-send-email-k.kozlowski@samsung.com> In-reply-to: <1430957086-25005-3-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKIsWRmVeSWpSXmKPExsWyRsSkQHfbuoBQg4MCFr3nTjJZXPn6ns3i 6O8Ci8sLL7FavLh3kcXi+b8f7BavXxha9D9+zWxxtukNu8Wmx9dYLS7vmsNmMeP8PiaLGZNf sjnwevx9fp3FY+esu+wem1Z1snls//aA1eN+93Emj81L6j36tqxi9Pi8SS6AI4rLJiU1J7Ms tUjfLoErY8Gn6+wFM7Urbq5exNjAeFO5i5GTQ0LARKL5WhsrhC0mceHeerYuRi4OIYGljBLv Jx9lgyma820aO4gtJD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K7zNK/Nj4igmiXkti/oY7YDNZBFQldvV8ZwSx2YDsiSvug80XFQiTePFqFzOILSJg KHFw93YmkEHMAo+YJfbcncYKskxYwEPi1FFDiAWtjBLb+zeDDeUEir89dJ1xAqPALCT3zUK4 bxaS+xYwMq9iFE0tSC4oTkrPNdQrTswtLs1L10vOz93ECE4Tz6R2MK5ssDjEKMDBqMTD23HJ P1SINbGsuDL3EKMEB7OSCK/ymoBQId6UxMqq1KL8+KLSnNTiQ4ymQN9NZJYSTc4HprC8knhD YxMzI0sjc0MLI2NzJXHek/k+oUIC6YklqdmpqQWpRTB9TBycUg2MWsb3Xm1sXGaipqQRvNbh 8HuzhA4xF21btS0s++0n3z26Kyni/Q77oheGm8x/RHZtvXz50iqLSwLfP1dwnxIsMfMKO5tZ 319zyTcglfGx8fOFPzIPTnhmo/fw0yfeP/+OevmJvNo+78vNwPbND2Q6+w33icUu3y286JqD gaEIq95V7RixqKofSizFGYmGWsxFxYkAjyFMvSkDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5584 Lines: 137 On 2015년 05월 07일 09:04, Krzysztof Kozlowski wrote: > From: Krzysztof Kozlowski > > The Exynos DRM code does not modify the ops provided by CRTC driver in > exynos_drm_crtc_create() call. Please check coding style with checkpatch.pl before posting it. I can see below warning, WARNING: line over 80 characters #146: FILE: drivers/gpu/drm/exynos/exynos_drm_crtc.c:244: + const struct exynos_drm_crtc_ops *ops, WARNING: line over 80 characters #159: FILE: drivers/gpu/drm/exynos/exynos_drm_crtc.h:24: + const struct exynos_drm_crtc_ops *ops, I modified and merged all patches. Thanks, Inki Dae > > Signed-off-by: Krzysztof Kozlowski > > --- > Changes since v1: > New patch. > --- > drivers/gpu/drm/exynos/exynos7_drm_decon.c | 2 +- > drivers/gpu/drm/exynos/exynos_drm_crtc.c | 2 +- > drivers/gpu/drm/exynos/exynos_drm_crtc.h | 2 +- > drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 +- > drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- > drivers/gpu/drm/exynos/exynos_drm_vidi.c | 2 +- > drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- > 7 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c > index 1f7e33f59de6..3d00df76220d 100644 > --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c > +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c > @@ -710,7 +710,7 @@ static void decon_dpms(struct exynos_drm_crtc *crtc, int mode) > } > } > > -static struct exynos_drm_crtc_ops decon_crtc_ops = { > +static const struct exynos_drm_crtc_ops decon_crtc_ops = { > .dpms = decon_dpms, > .mode_fixup = decon_mode_fixup, > .commit = decon_commit, > diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c > index eb49195cec5c..93f873f11f64 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c > @@ -241,7 +241,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev, > struct drm_plane *plane, > int pipe, > enum exynos_drm_output_type type, > - struct exynos_drm_crtc_ops *ops, > + const struct exynos_drm_crtc_ops *ops, > void *ctx) > { > struct exynos_drm_crtc *exynos_crtc; > diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.h b/drivers/gpu/drm/exynos/exynos_drm_crtc.h > index 0ecd8fc45cff..ed0994b3cb47 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.h > +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.h > @@ -21,7 +21,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev, > struct drm_plane *plane, > int pipe, > enum exynos_drm_output_type type, > - struct exynos_drm_crtc_ops *ops, > + const struct exynos_drm_crtc_ops *ops, > void *context); > int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe); > void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe); > diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h > index 44f128a03aea..0e951226ca06 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h > +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h > @@ -226,7 +226,7 @@ struct exynos_drm_crtc { > unsigned int dpms; > wait_queue_head_t pending_flip_queue; > struct drm_pending_vblank_event *event; > - struct exynos_drm_crtc_ops *ops; > + const struct exynos_drm_crtc_ops *ops; > void *ctx; > }; > > diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c > index 2fb95ccb5841..5c1a148525f8 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c > @@ -962,7 +962,7 @@ static void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable) > writel(DP_MIE_CLK_DP_ENABLE, ctx->regs + DP_MIE_CLKCON); > } > > -static struct exynos_drm_crtc_ops fimd_crtc_ops = { > +static const struct exynos_drm_crtc_ops fimd_crtc_ops = { > .dpms = fimd_dpms, > .mode_fixup = fimd_mode_fixup, > .commit = fimd_commit, > diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c > index 27e84ec21694..1b3479a8db5f 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c > @@ -217,7 +217,7 @@ static int vidi_ctx_initialize(struct vidi_context *ctx, > return 0; > } > > -static struct exynos_drm_crtc_ops vidi_crtc_ops = { > +static const struct exynos_drm_crtc_ops vidi_crtc_ops = { > .dpms = vidi_dpms, > .enable_vblank = vidi_enable_vblank, > .disable_vblank = vidi_disable_vblank, > diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c > index fbec750574e6..d4afd1abe373 100644 > --- a/drivers/gpu/drm/exynos/exynos_mixer.c > +++ b/drivers/gpu/drm/exynos/exynos_mixer.c > @@ -1126,7 +1126,7 @@ int mixer_check_mode(struct drm_display_mode *mode) > return -EINVAL; > } > > -static struct exynos_drm_crtc_ops mixer_crtc_ops = { > +static const struct exynos_drm_crtc_ops mixer_crtc_ops = { > .dpms = mixer_dpms, > .enable_vblank = mixer_enable_vblank, > .disable_vblank = mixer_disable_vblank, > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/