From patchwork Wed Apr 5 07:32:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9663159 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 2A00E60353 for ; Wed, 5 Apr 2017 07:33:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BC6528527 for ; Wed, 5 Apr 2017 07:33:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 106C12853E; Wed, 5 Apr 2017 07:33:13 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 988BB28527 for ; Wed, 5 Apr 2017 07:33:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EDC886E71C; Wed, 5 Apr 2017 07:33:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id CD6EA6E71C for ; Wed, 5 Apr 2017 07:33:09 +0000 (UTC) Received: by mail-wm0-x233.google.com with SMTP id t189so5820166wmt.1 for ; Wed, 05 Apr 2017 00:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=SFw7kjAvw2N5g2DlFHDPar//UycNeK6pz3FzojJBTd8=; b=UtsLcn3LteyvnZeao4izwCtaRRL+EBP0DrBJ+1ipiWv92hORD3pHxgNIUpUFBW0vMy 4w3BrChBv9aDczzAevbSoCD5dTnOcE8FngTeULRGf/b+D1GF0cQPE+qPJvptdrQ4xs43 wmx1mk/CODd2eN8B79VCIyWRTUDpG/+4xF8+7wU2fTF8DYZ9wK7Dxh4KQKaY94+cp0rD vn+jMfqZHqmMszNhCBg+8syx8rVpPGUtwT+s097PxuiX2Lk5dCgeRqMOh3AYyB5E2eSf HY7g/sFzrTRlx/W9eNrsuZ9LWrE7+ZChInyV93/rckU9CXQg8j7Si+hjr1ME3+EV4bh9 W35g== 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; bh=SFw7kjAvw2N5g2DlFHDPar//UycNeK6pz3FzojJBTd8=; b=ZL/5q92GCPDhRGRMJDPkJ/z0DRw0N+bWle+4LjEQvjoLc9opsjXOwbjrwnp9XhL56H Yt7nza3HgR+kMSbXPxqviEDunUYK0TxGVYnWc6Ul0fzcESbqGqAvoHNTDJbw/+/684cP tKsO9Ox8akP6/M8sEVUyuVLc6gAUmSgU0ELDv0+k0hwJYfY0jiYgk6yJX+XCOS0OTtE/ rGrp8MtXFTHqMpS1U6uUWg/FO1W5UYLxR0EOpsj0kz2fEBfMHSFzCOeXKv014MwzzyCY dsUseXmdrNQa2hZhb0BaXjvDp7DQ/4dKY6K0CFhZEyzrvsE0KvzUa0tiP4+s2ETnikUc 3/Ig== X-Gm-Message-State: AFeK/H0dXGQEC3AkceZYWJ54+IiB2/6OODxAZCPEVyNBAyo2c7B8rgYm Z27dnCBtSTCnxfNc X-Received: by 10.28.52.84 with SMTP id b81mr18105819wma.30.1491377588437; Wed, 05 Apr 2017 00:33:08 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 140sm21237684wmg.18.2017.04.05.00.33.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Apr 2017 00:33:07 -0700 (PDT) From: Neil Armstrong To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm: bridge: dw-hdmi: remove unused hdmi_bus_fmt_is_yuv420 Date: Wed, 5 Apr 2017 09:32:59 +0200 Message-Id: <1491377579-9353-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 Cc: Jose.Abreu@synopsys.com, laurent.pinchart+renesas@ideasonboard.com, linux-kernel@vger.kernel.org, Neil Armstrong X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Remove usused yet hdmi_bus_fmt_is_yuv420 function. Fixes: def23aa7e982 ("drm: bridge: dw-hdmi: Switch to V4L bus format and encodings") Signed-off-by: Neil Armstrong Acked-by: Laurent Pinchart --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 84cc949..7dd6699 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -605,20 +605,6 @@ static bool hdmi_bus_fmt_is_yuv422(unsigned int bus_format) } } -static bool hdmi_bus_fmt_is_yuv420(unsigned int bus_format) -{ - switch (bus_format) { - case MEDIA_BUS_FMT_UYYVYY8_0_5X24: - case MEDIA_BUS_FMT_UYYVYY10_0_5X30: - case MEDIA_BUS_FMT_UYYVYY12_0_5X36: - case MEDIA_BUS_FMT_UYYVYY16_0_5X48: - return true; - - default: - return false; - } -} - static int hdmi_bus_fmt_color_depth(unsigned int bus_format) { switch (bus_format) {