From patchwork Tue Oct 10 20:58:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haneen Mohammed X-Patchwork-Id: 9998861 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 144B160230 for ; Wed, 11 Oct 2017 07:32:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04C2E2891E for ; Wed, 11 Oct 2017 07:32:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDF8328920; Wed, 11 Oct 2017 07:32:39 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 A85812891E for ; Wed, 11 Oct 2017 07:32:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8EA1889CE2; Wed, 11 Oct 2017 07:32:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 15B1E89F03 for ; Tue, 10 Oct 2017 20:59:01 +0000 (UTC) Received: by mail-pf0-x242.google.com with SMTP id h28so208549pfh.5 for ; Tue, 10 Oct 2017 13:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=KN82NL2Xc/QPRoGzyewqGzxY8Oo8QM6FhVGRoUhjKNs=; b=c1CfcOesEqgBizC0M6JTukFpA/xU+5Za2RbsMG8SLUE6UdiBI200sB/IX7uqiEY7Hq 0ryNP/DDw2Vim1IFjRMz5SD5/hHODRhPEDZqSsFlwM/GRwBSKTGKL2b4i3GClRpxS10W 9rQplo5kaYMa+9/8mHztSs3ENcBZlbORXK4somrswlBj/DEZMklkhvFm9NGy99HhRZSr lTWqS2qKl1mk1ke/Eb/EQW7xh9ESTcqC0HfHraj/vR5hSTDeh9zCY3aqKq1VAiAIi5GS UyKyFACljSVl3/hjD2IVIv2plTzvrQkRYUmE1QVze8vyRIZKFDdu/U3dUl/GH5+pDMtN zdzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=KN82NL2Xc/QPRoGzyewqGzxY8Oo8QM6FhVGRoUhjKNs=; b=Co2Luyb8/Jrtn0qnkOCZgEQwcAwjFGIck32ETjlzEdOJlMVsVocMYV7/fI8dK+VAmZ 5/hOX9i/Mz5iOgRmlQhIjKlRZVPHzDNS4MaakXbjSHQBn1HsP8P6mggVetk426FgCAWJ gKevd1WzAsbU2OvGOU+i3IKBEDkDb/QQALjLuAI0tjW7TbAP9L/J3wzW3d/2QPq1KN2P D8OzG8jN2qx6/HQJIdjwOYBve7C02jGzmYEo7v8WEFSW+CR8Jopj7ZGNT2SZbWqvTI34 +kTAOPe/G7rVCsFpCKBVIsWtcVFqCYdNscn+jCf24UnRDIkEqbSiyj5O0+f5p82QAEk9 KOhQ== X-Gm-Message-State: AMCzsaW3UAwjZx+utedPSXR/r1JnXzIFlmUsxYGT/rhXAV79zxZIi4kJ muDFlWCfnHMYd87h7fig+Wk= X-Google-Smtp-Source: AOwi7QAL2M3usRPcjt3qjJJ1/2ALXZGf+X1QEcBgpjAmBnEys4MYLgfonQBHNmJtsgErpapKz4GBHQ== X-Received: by 10.99.104.67 with SMTP id d64mr13537766pgc.164.1507669141552; Tue, 10 Oct 2017 13:59:01 -0700 (PDT) Received: from Haneen ([64.77.242.50]) by smtp.gmail.com with ESMTPSA id b19sm5145523pfd.182.2017.10.10.13.59.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Oct 2017 13:59:00 -0700 (PDT) Date: Tue, 10 Oct 2017 14:58:58 -0600 From: Haneen Mohammed To: outreachy-kernel Subject: [PATCH] drm/tinydrm: Remove explicit .best_encoder assignment Message-ID: <20171010205858.GA4806@Haneen> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Mailman-Approved-At: Wed, 11 Oct 2017 07:32:33 +0000 Cc: gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Since the driver is relying on the atomic helpers, remove the explicit .best_encoder assignment and let the core call drm_atomic_helper_best_encoder(). Signed-off-by: Haneen Mohammed --- drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c b/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c index 177e9d8..bc55de2 100644 --- a/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c +++ b/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c @@ -50,7 +50,6 @@ static int tinydrm_connector_get_modes(struct drm_connector *connector) static const struct drm_connector_helper_funcs tinydrm_connector_hfuncs = { .get_modes = tinydrm_connector_get_modes, - .best_encoder = drm_atomic_helper_best_encoder, }; static enum drm_connector_status