From patchwork Thu Mar 14 22:04:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10853755 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7EDCD6C2 for ; Thu, 14 Mar 2019 22:04:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BDFE2A6A0 for ; Thu, 14 Mar 2019 22:04:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 601072A6AC; Thu, 14 Mar 2019 22:04:44 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F8062A6A0 for ; Thu, 14 Mar 2019 22:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727915AbfCNWE3 (ORCPT ); Thu, 14 Mar 2019 18:04:29 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58538 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbfCNWE2 (ORCPT ); Thu, 14 Mar 2019 18:04:28 -0400 Received: from Q.home (cpc85428-aztw29-2-0-cust223.18-1.cable.virginm.net [82.38.144.224]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EDC6C333; Thu, 14 Mar 2019 23:04:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1552601066; bh=sl0rIIsXyJRyN8uSFZ4YSUYZ6c5qUdWFyQ6c7AeZSyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SbV3yu7UCwdJPalVkfqYBmSxhpy4PaLMF+Vcg+IH6gYH9u47M+hlADkqfSHnZs5jX VQku1mlbMJxJoOwTsq3lrgkRlnIbNeJa1FcTCyS6dTaaPnMywL9RIBrwvn1kFlrEK/ LS6/HmhvCdGtJa4lxc5drxeCArgaSoQoiCb+nDkM= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart , David Airlie Cc: linux-kernel@vger.kernel.org, Kieran Bingham , Maarten Lankhorst , Maxime Ripard , Sean Paul , Daniel Vetter Subject: [PATCH 1/3] drm: fix subtle spelling error in drm_crtc_state Date: Thu, 14 Mar 2019 22:04:18 +0000 Message-Id: <20190314220420.32487-2-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190314220420.32487-1-kieran.bingham+renesas@ideasonboard.com> References: <20190314220420.32487-1-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The drm_crtc_state documentation contains a subtle misspelling of the word subtle. Correct it. Signed-off-by: Kieran Bingham Reviewed-by: Daniel Vetter Reviewed-by: Simon Horman --- include/drm/drm_crtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 85abd3fe9e83..f2b3762636df 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -78,7 +78,7 @@ struct drm_plane_helper_funcs; /** * struct drm_crtc_state - mutable CRTC state * - * Note that the distinction between @enable and @active is rather subtile: + * Note that the distinction between @enable and @active is rather subtle: * Flipping @active while @enable is set without changing anything else may * never return in a failure from the &drm_mode_config_funcs.atomic_check * callback. Userspace assumes that a DPMS On will always succeed. In other From patchwork Thu Mar 14 22:04:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10853753 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 64AD61515 for ; Thu, 14 Mar 2019 22:04:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C6742A6AC for ; Thu, 14 Mar 2019 22:04:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C9E92A6A0; Thu, 14 Mar 2019 22:04:43 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1C1D2A6A0 for ; Thu, 14 Mar 2019 22:04:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728028AbfCNWEi (ORCPT ); Thu, 14 Mar 2019 18:04:38 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58550 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbfCNWE3 (ORCPT ); Thu, 14 Mar 2019 18:04:29 -0400 Received: from Q.home (cpc85428-aztw29-2-0-cust223.18-1.cable.virginm.net [82.38.144.224]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D5C219C1; Thu, 14 Mar 2019 23:04:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1552601067; bh=tFZzDQSiins0z+FbCXBBMZ3NrS/K7HgO0KGJYiv0tQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n3HGNJYmi+TvIYrOtdPB2E8yXCE53GwuMSUdmm7QrTOqf4cpl+uPFYajnD0TpeoFr 3rX6Yul9U0D5oEjgL2EsiQmmrSUBdUs9xyGL+SV3o46RNjBPSSf6aW5L38I7Vwb+7j BLBbf9MF0Trtf1EtvfwbbRr79WODtuJoVKH6FAPY= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart , David Airlie Cc: linux-kernel@vger.kernel.org, Kieran Bingham , Daniel Vetter Subject: [PATCH 2/3] drm: rcar-du: crtc: make local functions static Date: Thu, 14 Mar 2019 22:04:19 +0000 Message-Id: <20190314220420.32487-3-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190314220420.32487-1-kieran.bingham+renesas@ideasonboard.com> References: <20190314220420.32487-1-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The rcar_du_crtc_mode_valid() and rcar_du_crtc_get_crc_sources() functions are accessed only through a function pointer table. Convert the function definitions to be static to the module. Signed-off-by: Kieran Bingham Reviewed-by: Simon Horman --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c index 4cdea14d552f..57fd5c00494b 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c @@ -761,8 +761,9 @@ static void rcar_du_crtc_atomic_flush(struct drm_crtc *crtc, rcar_du_vsp_atomic_flush(rcrtc); } -enum drm_mode_status rcar_du_crtc_mode_valid(struct drm_crtc *crtc, - const struct drm_display_mode *mode) +static enum drm_mode_status +rcar_du_crtc_mode_valid(struct drm_crtc *crtc, + const struct drm_display_mode *mode) { struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); struct rcar_du_device *rcdu = rcrtc->group->dev; @@ -981,8 +982,8 @@ static int rcar_du_crtc_verify_crc_source(struct drm_crtc *crtc, return 0; } -const char *const *rcar_du_crtc_get_crc_sources(struct drm_crtc *crtc, - size_t *count) +static const char *const * +rcar_du_crtc_get_crc_sources(struct drm_crtc *crtc, size_t *count) { struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); From patchwork Thu Mar 14 22:04:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10853747 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1AEE51515 for ; Thu, 14 Mar 2019 22:04:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0853A2A6A0 for ; Thu, 14 Mar 2019 22:04:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE32E2A6AC; Thu, 14 Mar 2019 22:04:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BC732A6A0 for ; Thu, 14 Mar 2019 22:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbfCNWEb (ORCPT ); Thu, 14 Mar 2019 18:04:31 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58566 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727927AbfCNWEa (ORCPT ); Thu, 14 Mar 2019 18:04:30 -0400 Received: from Q.home (cpc85428-aztw29-2-0-cust223.18-1.cable.virginm.net [82.38.144.224]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9BAF29FD; Thu, 14 Mar 2019 23:04:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1552601067; bh=1YhszjynjaScoGN/8bvmo4He1JeRXZTySkFPMs9frk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ClapT+5VGTFVc0szsit+mKjXDiZG3pllxGyACWXms5Rvq9n2thWKb5eP3oWgaCXfK GEsPbSuQ7Z26RLLT1bYD36zdQ5MEdJgJmFIGGBqpxRJU3TRAVpSGQq2T9vixTzQ3W1 wJ406C3GmCgg9SqMzWlfH1d3whl8pag8VFcq45rY= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart , David Airlie Cc: linux-kernel@vger.kernel.org, Kieran Bingham , Daniel Vetter Subject: [PATCH 3/3] drm: rcar-du: Remove unused prototypes Date: Thu, 14 Mar 2019 22:04:20 +0000 Message-Id: <20190314220420.32487-4-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190314220420.32487-1-kieran.bingham+renesas@ideasonboard.com> References: <20190314220420.32487-1-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The CRTC suspend and resume functions have been replaced, but the prototypes were not removed. Remove the redundant definitions. Signed-off-by: Kieran Bingham Reviewed-by: Simon Horman --- drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.h b/drivers/gpu/drm/rcar-du/rcar_du_crtc.h index bcb35b0b7612..3f339a7e8d14 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.h @@ -97,8 +97,6 @@ enum rcar_du_output { int rcar_du_crtc_create(struct rcar_du_group *rgrp, unsigned int swindex, unsigned int hwindex); -void rcar_du_crtc_suspend(struct rcar_du_crtc *rcrtc); -void rcar_du_crtc_resume(struct rcar_du_crtc *rcrtc); void rcar_du_crtc_finish_page_flip(struct rcar_du_crtc *rcrtc);