Received: by 10.192.165.148 with SMTP id m20csp4688018imm; Tue, 24 Apr 2018 06:57:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp7Slay/LTnpngh8Hb/HuvtQQGjXuI2JYkmld+ZHK3zPCEFEcdl9hyzDQyrOwTEtZh+MFBr X-Received: by 10.101.78.8 with SMTP id r8mr2628837pgt.29.1524578220886; Tue, 24 Apr 2018 06:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578220; cv=none; d=google.com; s=arc-20160816; b=SlEWhMuOIiPLkgc1OvEg5IjZ6VDqrVJECeQ9SsItCJACFLzEjEnVMTtkqMzA4+oCMk 5BA8xgAyXaoyr38O5mlq6gU62orKtaB6FhF1U0IdN+zkRip9srFBNHINlrr6b2A9VwCs lqOjeyANiTOruui9DTvOzEY/7KciP//9QzIlvrEfHFbgHGHPL0hpOdBAlbgKLs6weApY O+i5RpOKdfKnpcOwg20Lgr8+PGOmkEZnVLETGCbyqJIEChb0y2sBSI7GKzHIZ5eWTmGp FMQIrxBE7CP/opRMJxpM/wyZPi0ibvMCCl9W23AIJQCvF61FuUWQZrsaQQNrzd+WBUNm aUvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=BsR98DqVyAMOjq2n90q5KatpZiLZYadGo2nhdMYWtdI=; b=1BH9S/WD2UWDP03U7FOUE/VGS+uWXjtEClNUjQ837cuyu8L0c0VsdzB+Rfqi+1gI9x wBwmFnACpfgtTAKJ/6tFhfbXJtl/doMAAi0LbrSt7kHcK11IMLPiiyO8lU5jLwMwKDyb K/3hN7U/kiYdi6NXrY38ftePvxoOWPQSjTKL0vfbaSOB2NW1umgP9rqH382d4+lMNrpw uGYBOqg8dzO5UwpNM5lwC7i6ChF9x9P4F+ukBlPWaaiFu9qZN67J678OVmNpNhbLNP18 2m9p1F/p2K8AFTn4nacD9o4ig0485a5QNNP4+DfwJLWwgtr21uAEyoKzO9todnqGIRNn AfGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D/DXvRgZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si1067180pln.445.2018.04.24.06.56.46; Tue, 24 Apr 2018 06:57:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D/DXvRgZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933587AbeDXNzA (ORCPT + 99 others); Tue, 24 Apr 2018 09:55:00 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37782 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933499AbeDXNPY (ORCPT ); Tue, 24 Apr 2018 09:15:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id l16so795771wmh.2 for ; Tue, 24 Apr 2018 06:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=BsR98DqVyAMOjq2n90q5KatpZiLZYadGo2nhdMYWtdI=; b=D/DXvRgZ1/qUWxDmmzwpyod0pi/r5jUhxK5EnkceyK8mqgnCLIrgSV2TttJ/+tlTwo HzjJ15fDyuGkhqoAxKNzl2/YKqYustkIY9MzBr2qehUCatwc8P/deJN5GWlunyWiTj7r Oi7AOqluwoNvFApZJRNRODZ/I/xa2Tb5eyjvOFNRl3q6r5GmkgowJGzgn3uoifOk2+Fa 89nz5ruPrkG63DYpnepc1wx0iskaONoRYYnRIfLvqiAnUE2GXJ6fl2hWfuOGbFhD+ZUk OL2Cxq5extiOgazx14nlJLNBsOhjUPn/ocGqKEZ4KFHLg0+RYCsVi/8M0VhsI8cAHMIY OeSQ== 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=BsR98DqVyAMOjq2n90q5KatpZiLZYadGo2nhdMYWtdI=; b=hXSvQd/RAvutyJI5fm0VoxazQA5e4CV0ryCSE2Z0sUJO+g+nZL2o0uqY7kg2bAijr2 Ks4IwchFI7Y+FRfc0z0uL0Eh3FsBgwiqYIDxn5dQ9O9iwscvIq4dYxSAZOKs/RJdEvZ8 JqxCF7WiRy6ISLJOU555vNu4A+rH80B09q9KEMenK+PLWfQ+6/zHh6Lk5567YGWlxeKb TbtmV8XmV2X4yfm8GNqOLAJPSVsWAjg+xS7Ch16L+KPgb56z4K/yFhfN5HG8HqSLz/J+ D/ayISoZqhrvC/vliggQINT1nykiL/a0wD5TfT8TQf+2hIPLg+GXV1S8d4SEZ7gk/Ia9 +0xg== X-Gm-Message-State: ALQs6tAck81rO38/mS0V8Mbeqg73kz9WHaHIHxN3xGRCWfkLjbVZ6xlF 9Z9M5IFxbxQJ4lhbstk0D+dgBk/aOds= X-Received: by 10.80.144.250 with SMTP id d55mr33362551eda.54.1524575723440; Tue, 24 Apr 2018 06:15:23 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id x49sm9452993edb.94.2018.04.24.06.15.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:23 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Russell King , David Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/i2c: tda998x: fix mode_valid's return type Date: Tue, 24 Apr 2018 15:15:21 +0200 Message-Id: <20180424131522.2460-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method struct drm_connector_helper_funcs::mode_valid is defined as returning an 'enum drm_mode_status' but the driver implementation for this method uses an 'int' for it. Fix this by using 'enum drm_mode_status' in the driver too. Signed-off-by: Luc Van Oostenryck --- drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 9e67a7b4e..421c8a723 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -1106,7 +1106,7 @@ static int tda998x_connector_get_modes(struct drm_connector *connector) return n; } -static int tda998x_connector_mode_valid(struct drm_connector *connector, +static enum drm_mode_status tda998x_connector_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { /* TDA19988 dotclock can go up to 165MHz */ -- 2.17.0