From patchwork Tue Mar 19 10:41:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 160559 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp3712218jad; Tue, 19 Mar 2019 03:43:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNLKbJe3/bZ6ULjQ7wqj1tjbVrLU9SfLpfyG/+ikroZVry2zFew0oTqtnNXQf40EcRU+AN X-Received: by 2002:a62:388a:: with SMTP id f132mr1717711pfa.150.1552992184066; Tue, 19 Mar 2019 03:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552992184; cv=none; d=google.com; s=arc-20160816; b=ZkawpUN4ghnW2crTHETDyPYW6BgJlfMrQECMtt09qEjaBdq3gmPwwkhOi/bsc0ZqLu xTDLu89wH1TD4CrbEYyzNjXfubEwb2+EsFoGgzA3eyub8eKEPfp9yLhFLul0deqpb4SC z0BpzI5mUuNRYVwTXQO9jAcqK/hfA6ziG9aFfLXStdHvLGyQW+S3STfhOb/ljwjrSjph e3MraRTHTBrP4LaxH3JnnFSPxrzeSPzYoefO1YBsYEUlzj5cDr1Kyn+JyCylL1uX551P y/E6aFX+ISbeNXcjHksHf+JXO7VK0DjTUmuE5SUkV6+CLuB9yxfutk4cHNGTJ815c1tA t4lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=mhkV5igKQcFqTlxryzZXgBmX66tlDVv/fCVDaVzh/2U=; b=mG5kFu/Y491K3zz0nqOnepq8oOT68R4suqkMvqqL4MhCbDPOByvA0jQRvguA5+Tikg RrZGoHJpV2lzeWWRTzxQhDFu/jjYYs0fQzJyYiCpYormhsrmNC6DFeY42N6isH7CAKxg 6hOkIv3DN9zA693SBZojzf2ipvO0NbuZpqSAlyehOVk4YsdoDDeAcXyYtyeknQpwU3hH gHlXvHWNsz9iRhn4mOPjovg84m5eN2bmJOF3nqocFWbJV3mRbqAxT843FhbHsZHGPRMO 6BQ/bc4OUmxGiC1fR5zfvqibn+O3k3xrn9w1/Am5kMdbN/Z7XaouWRtA5PaaX0MaGb7d C9Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id g30si12450034plg.102.2019.03.19.03.43.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 03:43:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3725F89AEE; Tue, 19 Mar 2019 10:43:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A49089AC2 for ; Tue, 19 Mar 2019 10:42:48 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2JAgjnd076865; Tue, 19 Mar 2019 05:42:45 -0500 Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2JAgjmp017896 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Mar 2019 05:42:45 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 19 Mar 2019 05:42:44 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Tue, 19 Mar 2019 05:42:44 -0500 Received: from deskari.lan (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2JAfxlb019091; Tue, 19 Mar 2019 05:42:42 -0500 From: Tomi Valkeinen To: Andrzej Hajda , Laurent Pinchart , , Lucas Stach , Andrey Gusakov , Philipp Zabel , Jyri Sarha , Peter Ujfalusi , Benoit Parrot Subject: [PATCH 18/21] drm/bridge: tc358767: remove tc_connector_best_encoder Date: Tue, 19 Mar 2019 12:41:11 +0200 Message-ID: <20190319104114.12077-19-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190319104114.12077-1-tomi.valkeinen@ti.com> References: <20190319104114.12077-1-tomi.valkeinen@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552992165; bh=VBEKMJMJvRZMXQb5FvC1b0EXg7hoNaDlcHhkAgsFFsY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xA/syQtBS2i2wG9+/+Xr3+I5pTSe9R+6LuAyHla6HqNCwT+rLo+QGzFjKQwzKaWzS ObovVcXtrrF0PBjaShBAPz4QHRd8fpZwpQ6Zks4yjxshjLvZeCRihzfUDAs6YlW2qW CgVwHG3rpV90IyIIN5S5GLmeYGyVfjZ5S606J4sE= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" As far as I know, drm_connector_helper_funcs.best_encoder is not needed in a trivial case as we have here. So remove tc_connector_best_encoder. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/bridge/tc358767.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 9fbda370a4c2..114d535c296b 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1202,17 +1202,8 @@ static void tc_connector_set_polling(struct tc_data *tc, DRM_CONNECTOR_POLL_DISCONNECT; } -static struct drm_encoder * -tc_connector_best_encoder(struct drm_connector *connector) -{ - struct tc_data *tc = connector_to_tc(connector); - - return tc->bridge.encoder; -} - static const struct drm_connector_helper_funcs tc_connector_helper_funcs = { .get_modes = tc_connector_get_modes, - .best_encoder = tc_connector_best_encoder, }; static const struct drm_connector_funcs tc_connector_funcs = {