Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp357092pxb; Fri, 8 Jan 2021 06:49:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/Dwcym5k2cwFVtAnA7Raboo7pXKonvAi/f4Wk133POKFaMdiu+fcXnTYKgwVqOixnh4yf X-Received: by 2002:a17:906:5495:: with SMTP id r21mr2853782ejo.59.1610117396300; Fri, 08 Jan 2021 06:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610117396; cv=none; d=google.com; s=arc-20160816; b=PAJX1FuAzYH/IZdUgsCvBWM9NnJsjlQIWDLFn56QwioBCmpyAgoO83PSX+xNy4KlsN JTOrJf+uQ/z1IpFgqJS/uaGeAjPCoVb01tVJDYboXUvTcsgfc/gaxhp0OokWJnS+jnJz pwV/QARdzXwc2hNfiuNaaDrVV+BqRQJVRtZrN5933dSuWZbOJ/90vAd6NWTdXgqtBzZI A2/E1Hh66hS8V1ERIGYfr/MhHLXVA/6Mxyq05mC0IhxYesXk67NdDrDV9QFnLalKNcrE i+yipXGhMcELnGiZGBec8Zi69U30z+neMa3wjvdj9PqLXGrN1m94bHgI2nLmggqk0J5W S6HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nHZfmrLsnCXU18P2naZwZ/rk6gM2XqRiNjrN0fvyktI=; b=DUY9x9KoU/Zzm7g+Zc8TIzPdkgtKk3YldRf3OlUkB0IOupewwCm87KHglS/K0QZuil Li8NWQuxC0xfYslOiDGUEM0JO8BSKmfNXtL+UTX1dpnTYUDIJbtgugOy0U7Q4NmYDgZK dl+4v3/C4EV0erxsr2Beyg7Jnpp/zLvgbjbIJqTcSZYANIStiEbNjuw+ujSnlL4vHMHr UMiX0qz62fn9G7sVxQH7vRRnPgnkjfbdhqBYfiqxnyiSOmNNt14MFnm9DnKz3VVoSlZm Pj8W8LF9spLFX8qTEGceVZSfNs1rOtBPfSscjAv0XedPfJRcHPUfo8hDKd/TRd1sdfcJ IRjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=aKFaDhyA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb26si3653449edb.382.2021.01.08.06.49.32; Fri, 08 Jan 2021 06:49:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=aKFaDhyA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbhAHOqa (ORCPT + 99 others); Fri, 8 Jan 2021 09:46:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726745AbhAHOq3 (ORCPT ); Fri, 8 Jan 2021 09:46:29 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAAFDC0612FD for ; Fri, 8 Jan 2021 06:45:48 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id 190so8027536wmz.0 for ; Fri, 08 Jan 2021 06:45:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=nHZfmrLsnCXU18P2naZwZ/rk6gM2XqRiNjrN0fvyktI=; b=aKFaDhyA2RcZhDG52kY8ATxpamcGN/eDNi7Vbe1TQe0T4tDcd/HefsMQ1nkVR+21+I nau/AVOiziFGCjzSyHvbbF9zvOd5ZXB3rD90v9+3wS0zRzq7yqVGC3ZNpWqyBNmbe0Al xA1qoClAZdaMsHpketUzfz2Iteo2ZJgWFzUcs= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=nHZfmrLsnCXU18P2naZwZ/rk6gM2XqRiNjrN0fvyktI=; b=HWuC3wqhrTSUDCX/YfgV2U515YtsewLyR5dbpJU51swst0Qve9edBWe1ydheAZUWwH rRtCUsCJaX0PArC0LKY0siOugsqxZkm0uFtgTULjYt742KJT2+oAyMj6v6GbYT62VYY5 /nr9wgWBlvQsgI9PHC0h+5inbFxPE5OMqqrU67GJM0EjYO9mYbbRTp9xTfPLc/nskFs+ pUblV39yTfJqPmFOVzWnVoCqbv7yUZ89VZxgwF5LzkEoKXN9Sa1OypMTKVIWNHWoZ3Be 13OxCjQl4OP1ANut9izNkU+EAozVxTfUYRSKQbuo/ALJt433XPt2m3Uu4gO6MpUPXhdD vCyA== X-Gm-Message-State: AOAM5319zWU1+HOdIoewFRyxldTePpOXagpvkAKQtW6VQo5wbEQlUGmM b36cbKFlToqXInVfTzuMwxP14g== X-Received: by 2002:a1c:4384:: with SMTP id q126mr3426381wma.84.1610117147582; Fri, 08 Jan 2021 06:45:47 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id c4sm15815677wrw.72.2021.01.08.06.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 06:45:46 -0800 (PST) Date: Fri, 8 Jan 2021 15:45:45 +0100 From: Daniel Vetter To: Tian Tao Cc: airlied@linux.ie, daniel@ffwll.ch, tzimmermann@suse.de, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/hisilicon: Delete the empty function mode_valid Message-ID: Mail-Followup-To: Tian Tao , airlied@linux.ie, tzimmermann@suse.de, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org References: <1610102465-36501-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1610102465-36501-1-git-send-email-tiantao6@hisilicon.com> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 08, 2021 at 06:41:05PM +0800, Tian Tao wrote: > Based on the drm_connector_mode_valid, if the hibmc implementation > of mode_valid only returns MODE_OK, then we can not implement the s/can not/need not/ > mode_valid function. > > Signed-off-by: Tian Tao Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c > index c76f996..c74a35b 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c > @@ -43,12 +43,6 @@ static int hibmc_connector_get_modes(struct drm_connector *connector) > return count; > } > > -static enum drm_mode_status hibmc_connector_mode_valid(struct drm_connector *connector, > - struct drm_display_mode *mode) > -{ > - return MODE_OK; > -} > - > static void hibmc_connector_destroy(struct drm_connector *connector) > { > struct hibmc_connector *hibmc_connector = to_hibmc_connector(connector); > @@ -60,7 +54,6 @@ static void hibmc_connector_destroy(struct drm_connector *connector) > static const struct drm_connector_helper_funcs > hibmc_connector_helper_funcs = { > .get_modes = hibmc_connector_get_modes, > - .mode_valid = hibmc_connector_mode_valid, > }; > > static const struct drm_connector_funcs hibmc_connector_funcs = { > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch