From patchwork Tue Jun 20 13:07:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9799509 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D575360329 for ; Tue, 20 Jun 2017 13:10:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6F4A27DCD for ; Tue, 20 Jun 2017 13:10:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBE4628488; Tue, 20 Jun 2017 13:10:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5BD6A27DCD for ; Tue, 20 Jun 2017 13:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Iy/07A40Fs+zVgl5DEiNDXe7IJFp/sZ+o4byGSKnnGU=; b=S/nBMPP5QQKVh04KXdIUWcnnp5 ViGZXVIyUpUFsD/5m8VMo/wor4JRP61s4UcT/B4n/zr7aOOJfm4n3WVWzz1hiLnBf1Z3BqebWLsCe z3ulyweFVW4dHSkzjsUoXkApnkf0bAsNpforxGzQ8MhVr1EbDm3+x96ds/e+7C+OmNx4BYSCc3B8B oAkB6C84TrRyh37u4nd+XrcLmbmZa5wt0+ZXMY2U8KbCyxpE/nHdaLoRBeHkTJPlcGLdGNQ/3yoVF gqQEDsoZwrVzSdlQXEoU1GYn49Sn7GMnVEoL2UHOjUy6AkZIZSzPK7VJE3xlyoYe2efANDWuUQay4 0Ob17SAA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNIvX-0005Sc-DV; Tue, 20 Jun 2017 13:10:39 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNIvK-0004gG-Ea; Tue, 20 Jun 2017 13:10:29 +0000 Received: by mail-pf0-x241.google.com with SMTP id s66so22920261pfs.2; Tue, 20 Jun 2017 06:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=t5eUgM8Ey0h5Z/2ylbjJlwIZsYbSQMPKLfR3YGTI9hw=; b=frDZDHaBqbXa50ZbnljE0Z4CQ6r/1EpJNPIELsI9pF05WFkJZumcLmQXzxrFimXh0C nM21z/DrqZIOyU/2kJT50rPLO3E81xmeza/PYdmpoQZFqt8wuqLX47d8NWcWAhQsYfTz YabqbMnY6Ha6SBDEBfP9ckQuRz3yg1CvW13SnbeZsbg+sqx2zvkjrt7Z6M5H3IQpk1Wl hr8xFAYgEPSyGny+Z7JyUZBemIr+nzwv6pyEkyaDpWWu2/TngBINITvJpTVNLj6k8wBY md3x+EglVu6Oeg5W2nu8f5y0Vm1VS3A1Qf73sm76YfWc7xPUVsNmYz3B/4TRfAhAfk6u 0IzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=t5eUgM8Ey0h5Z/2ylbjJlwIZsYbSQMPKLfR3YGTI9hw=; b=ZWmh63a0WkYxk3Srq8AdSa7kWUxNXes2iCTRE9yojAPIWtivBXH3G3f1OjNHjmwqif asFLreu0CsOHnjI408wVrdnoYVJNp52PUkiH9i4i26u/Gqu8JVeg9h5RzUhfH7EE2X8h X5aR8n/qWnVFm+jDGTdWxWIbuZUzeVnfHgzg55UcLPd5pi9Kn99d34Yg6e7QXlOylNQ/ kFJ1GD73P9pVgVv5/6umkGLJP46qasAGFlpB80BWB8CIIe+ONyVPG36PyEhjCb5Y+RXc 0OvYTgACSjV4Ug/ocJC04RtOSsiAfyVbJnepeiz3Xp8bmk2FvnKB+ZfiOIkrrzjLscL5 27/Q== X-Gm-Message-State: AKS2vOzjz+W4wO5uAcpHoN1BzhfpoGxapbQUlDkdBjJV0MNUO1+7gNmv Qh69LeIHpvj6Pw== X-Received: by 10.99.173.6 with SMTP id g6mr6911523pgf.1.1497964205308; Tue, 20 Jun 2017 06:10:05 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id i2sm28150223pfe.89.2017.06.20.06.10.00 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 20 Jun 2017 06:10:04 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 20 Jun 2017 18:38:12 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, maxime.ripard@free-electrons.com, airlied@linux.ie, wens@csie.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.yao@rock-chips.com, heiko@sntech.de, linux-rockchip@lists.infradead.org Subject: [PATCH 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures Date: Tue, 20 Jun 2017 18:37:59 +0530 Message-Id: <1497964080-27301-2-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497964080-27301-1-git-send-email-bhumirks@gmail.com> References: <1497964080-27301-1-git-send-email-bhumirks@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170620_061026_729137_2CF53667 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bhumika Goyal MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Also, fix line over 80 characters warning while adding const. Signed-off-by: Bhumika Goyal --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 3 ++- drivers/gpu/drm/rockchip/inno_hdmi.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c index 9606121..96c6c10 100644 --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c @@ -252,7 +252,8 @@ rockchip_dp_drm_encoder_atomic_check(struct drm_encoder *encoder, return 0; } -static struct drm_encoder_helper_funcs rockchip_dp_encoder_helper_funcs = { +static +const struct drm_encoder_helper_funcs rockchip_dp_encoder_helper_funcs = { .mode_fixup = rockchip_dp_drm_encoder_mode_fixup, .mode_set = rockchip_dp_drm_encoder_mode_set, .enable = rockchip_dp_drm_encoder_enable, diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 7d9b75e..4ab9fad 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -530,7 +530,7 @@ inno_hdmi_encoder_atomic_check(struct drm_encoder *encoder, return 0; } -static struct drm_encoder_helper_funcs inno_hdmi_encoder_helper_funcs = { +static const struct drm_encoder_helper_funcs inno_hdmi_encoder_helper_funcs = { .enable = inno_hdmi_encoder_enable, .disable = inno_hdmi_encoder_disable, .mode_fixup = inno_hdmi_encoder_mode_fixup,