From patchwork Tue Apr 24 13:14:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10360233 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 4419F60225 for ; Tue, 24 Apr 2018 15:22:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3130B28E32 for ; Tue, 24 Apr 2018 15:22:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25E4E28E3E; Tue, 24 Apr 2018 15:22:11 +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=-5.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 B707128E3D for ; Tue, 24 Apr 2018 15:22:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E3786E419; Tue, 24 Apr 2018 15:22:10 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id B83A76E415; Tue, 24 Apr 2018 13:15:02 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id o78so790240wmg.0; Tue, 24 Apr 2018 06:15:02 -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=v1uNW9HLLKtuteKa1pHuFdz02TmQSMIc6U34QqJBvvk=; b=r7BV60KgKr7nCGCxL0g7CkywkGyNps+9jEkTXeRdZTi4nk422qzaqsZvPN22U+d5N8 QKKdVb4ewCOdjIxfsLiR5OO3xB8lgbQcw/4TjGonjHyb1mJ8/tGB//S7AZHtwNnJ70Ls ArP0kMbCcIufuwj1zywGHYhvlZe8UdAAHuGheaJHBG7odkEzrM2lGqWmbynWmocdN0Me 9JR8cFU2vgS6lr9mFdI9MJsxtWYpzvXGSciO8fghSxROuwZRJLIjjBd58m2txsbDDWps fY1IXZq60Zq+4QJIZbNqt9AkU+YVAmPND+WR/mx0SuolJdlcpF0RCpEKxaN+ZweZufad WdCw== 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=v1uNW9HLLKtuteKa1pHuFdz02TmQSMIc6U34QqJBvvk=; b=rPk7z6WYZi1++Dq9l6OzR02sISc3IQRx2lBfWeqEbpBHDZIvG2ovTWLjCBIWJ0TV7S +e7Bc3/ZoY2rknENFH7/6ygPM56/gJGfqgZukesRKafHe9YqrcSgetvXnkq4+pOPldzs TKRhXBcKfHkEZeaDkwOxCpse0FgeSpOqOtD3/SdugxxUnhdN6iOIcIEClfk0KgXWSBh7 XLikODEPLvsXZmR1JlesDU2DNc+kGhWvhkg48ZAqODeux0w/UkGxeOsmpAGp4F83s6C8 vSMnzzb/NRLE4Mb6lP+EoA0og3kjNUWmspeiC7BWRdctFkRhHGcJMEeQORpspmkjLty5 2yJA== X-Gm-Message-State: ALQs6tCDBK1C3FaBwNkIXLaFKwIbyMdGbmrEKWLTD8hl9v0m8RLuKtNs jxVzTm02mabRXrbbxgNeeTA= X-Google-Smtp-Source: AIpwx49RVHtMBYIUTFH2Fu09Jw1WlGBArWziRNgU4VZRidET296FJlAevJpbq2jc0XzIILvgvehlGQ== X-Received: by 10.80.148.156 with SMTP id s28mr33044186eda.201.1524575701487; Tue, 24 Apr 2018 06:15:01 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id w1sm9228183edf.57.2018.04.24.06.15.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:00 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Date: Tue, 24 Apr 2018 15:14:59 +0200 Message-Id: <20180424131500.2110-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 X-Mailman-Approved-At: Tue, 24 Apr 2018 15:22:08 +0000 Subject: [Intel-gfx] [PATCH] drm/i915: fix intel_dvo_dev_ops::mode_valid's return type X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Rodrigo Vivi , Luc Van Oostenryck MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP All implementations of the method intel_dvo_dev_ops::mode_valid(), as well as the underlying struct drm_connector_helper_funcs::mode_valid() use 'enum drm_mode_status' for the method's return type but the declaration of intel_dvo_dev_ops::mode_valid() uses an 'int' for it. Fix this by using 'enum drm_mode_status' for the declaration too. Signed-off-by: Luc Van Oostenryck --- drivers/gpu/drm/i915/dvo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/dvo.h b/drivers/gpu/drm/i915/dvo.h index 5e6a3013d..b6e143ebc 100644 --- a/drivers/gpu/drm/i915/dvo.h +++ b/drivers/gpu/drm/i915/dvo.h @@ -74,7 +74,7 @@ struct intel_dvo_dev_ops { * * \return MODE_OK if the mode is valid, or another MODE_* otherwise. */ - int (*mode_valid)(struct intel_dvo_device *dvo, + enum drm_mode_status (*mode_valid)(struct intel_dvo_device *dvo, struct drm_display_mode *mode); /*