Received: by 10.192.165.148 with SMTP id m20csp4754528imm; Tue, 24 Apr 2018 07:56:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49n4ZwaDomLoWS21qp5UyWWB83h1jVDVxCLSb+YHCazPd8GAvO7cC5f/mQa2jR4IZu/1D2a X-Received: by 2002:a17:902:32a2:: with SMTP id z31-v6mr25202778plb.41.1524581798684; Tue, 24 Apr 2018 07:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524581798; cv=none; d=google.com; s=arc-20160816; b=gh1WlyuMp1kZA55a2o1vycogJ5Fjo505ZQnZtpjd1/lwkTgcpcgaF0cPSs4ae+pZxV o4yi0l9FZRHLX9ndKiYS7DYnKEnhCODPY7WyV+Ukh6OVZnfBW+QbijK4diNsulzcPi9r 2r48iPYT2AjEbMHqMGWe1vVhtQNy+qpP8OIFTGYoc5qWlKvcFtQF7tmKnXln1ElmaEql P1etFK5oU6RRLbAGMFvi46fI4gLhNaW+tiRkapQJxgsFlllq0Ks72Pk7TEOp09q7YhGg nkXjVDQwTnGM5XB90e1Y4kYOxmrsvBOzBtQbkh3OTrG23cug3yra73gFMkLaGMsMh+3/ feDQ== 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=WpDsbW+jkyjj2/I3WZnjrBVV19aI+PaB5NljXy6g09U=; b=E/9jXAEhiicUjxlhY0g/poIOQz6acb6jy26Tkr1f/lptXOJuzh6uxnhkusKfDyRKm7 PDWsfJ3QzlZNWLyxXXlub2xpf8j2G6HLAyCZr2pL+SFU8AZFCaoVRRbqNvAxDYwzBsOG LAn8vQekNweinlaUpuMwaGRm0pAPFzN3yjW933QfhSBMXSX2qOwoC+YyAL5rF0vM3yMh kwkqiqz/VRpsnh6eWM5c2s3QwxmfdzustKEtzB/WeCnqoC8nyD69A6CLtFVTtBeifGQ5 8UP5DAlcjy5XdJH1KD2HymFDdSNhECdS5HCTNFwTKuMeL7NqoKnsAUxp5YFpYGKZ62Dk MT+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EoYk+sAc; 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 t3-v6si923493plq.547.2018.04.24.07.56.22; Tue, 24 Apr 2018 07:56:38 -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=EoYk+sAc; 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 S933461AbeDXNPF (ORCPT + 99 others); Tue, 24 Apr 2018 09:15:05 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39136 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933415AbeDXNO6 (ORCPT ); Tue, 24 Apr 2018 09:14:58 -0400 Received: by mail-wm0-f65.google.com with SMTP id b21so793059wme.4 for ; Tue, 24 Apr 2018 06:14:57 -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=WpDsbW+jkyjj2/I3WZnjrBVV19aI+PaB5NljXy6g09U=; b=EoYk+sAcu+aY7KgM4wpQX6Pa99ROHuRCrrkrnTFt8R6koIXsHvVgOJcz+d1k26spZs TVJY1dMipAF2/DvpxjQg0xZ5UyUN3cJzD5sw5jDtIPisZDcjTRIIPXMqHaGOs/fgF8sK 9Qiv3+lpQ+qMZz+nIJzIULaxcqo3F0DPHYH8/O9vd6+T1nb9fzAX+vZZFPz9l6CN2HOy 58PezW4VDmFdk90bPu7nh8lqtf3WL2kSt1NMWCWxGFeZhZJRjRx+iMUscmOmJ665qL5k j0Xbfqp2ZB3nmxQ7zW7usjDDHRaFqumdrtRfwYnDBpeMcnnZq8NxXZdrw3H6ps225hEu jQAA== 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=WpDsbW+jkyjj2/I3WZnjrBVV19aI+PaB5NljXy6g09U=; b=kmkaYuwUsX/v+CzwBgMsvq38da6xGR9Uu7EO5p2H1YQpR2x1AG5O+Spe9PijZDhrPC rYogrW7YNKHAZOMy73TpsPbaNXtQbtttjTDaFQZAbF0BvUqvr17xj7KBRa8zI3A7Tse4 INCk4gNVKKs1qKw1TG4hvvN5gVfAvExD/CUgnf2xHcdAq3A4fJQ1xrOkA8Te7ZiBSIGg V4Z36cpPsfLyJha1nHI/FUmRCJbrjhh+8mbt9PSBEr9hiAVS+/XrwqPtaTcsoWMIBvdg iZev+/pylZbVXheP/TtskqDqSE4rrJL5tbWAYBJGGSgTNPpm9+0XIXuhCGdp0J+Dw3Kt idXg== X-Gm-Message-State: ALQs6tCKJCq9avd98PVgRqY1WDJEf1tW5SfU+wd/XOdXujpShRIEPFaY CmnMH7xHQlBnx9Av51z2wN3ne336 X-Received: by 10.80.234.195 with SMTP id u3mr33533393edp.49.1524575696906; Tue, 24 Apr 2018 06:14:56 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id h7sm8899787edj.59.2018.04.24.06.14.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:14:56 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Patrik Jakobsson , David Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/gma500: fix mode_valid's return type Date: Tue, 24 Apr 2018 15:14:54 +0200 Message-Id: <20180424131455.2011-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/gma500/cdv_intel_crt.c | 2 +- drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 +- drivers/gpu/drm/gma500/cdv_intel_hdmi.c | 2 +- drivers/gpu/drm/gma500/cdv_intel_lvds.c | 2 +- drivers/gpu/drm/gma500/mdfld_dsi_output.c | 2 +- drivers/gpu/drm/gma500/oaktrail_hdmi.c | 2 +- drivers/gpu/drm/gma500/psb_intel_sdvo.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_crt.c b/drivers/gpu/drm/gma500/cdv_intel_crt.c index b837e7a92..cb5a14b7e 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_crt.c +++ b/drivers/gpu/drm/gma500/cdv_intel_crt.c @@ -64,7 +64,7 @@ static void cdv_intel_crt_dpms(struct drm_encoder *encoder, int mode) REG_WRITE(reg, temp); } -static int cdv_intel_crt_mode_valid(struct drm_connector *connector, +static enum drm_mode_status cdv_intel_crt_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { if (mode->flags & DRM_MODE_FLAG_DBLSCAN) diff --git a/drivers/gpu/drm/gma500/cdv_intel_dp.c b/drivers/gpu/drm/gma500/cdv_intel_dp.c index a4bb89b78..5ea785f07 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_dp.c +++ b/drivers/gpu/drm/gma500/cdv_intel_dp.c @@ -505,7 +505,7 @@ static void cdv_intel_edp_backlight_off (struct gma_encoder *intel_encoder) msleep(intel_dp->backlight_off_delay); } -static int +static enum drm_mode_status cdv_intel_dp_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { diff --git a/drivers/gpu/drm/gma500/cdv_intel_hdmi.c b/drivers/gpu/drm/gma500/cdv_intel_hdmi.c index 563f193fc..f08789985 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_hdmi.c +++ b/drivers/gpu/drm/gma500/cdv_intel_hdmi.c @@ -223,7 +223,7 @@ static int cdv_hdmi_get_modes(struct drm_connector *connector) return ret; } -static int cdv_hdmi_mode_valid(struct drm_connector *connector, +static enum drm_mode_status cdv_hdmi_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { if (mode->clock > 165000) diff --git a/drivers/gpu/drm/gma500/cdv_intel_lvds.c b/drivers/gpu/drm/gma500/cdv_intel_lvds.c index e64960db3..de9531caa 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_lvds.c +++ b/drivers/gpu/drm/gma500/cdv_intel_lvds.c @@ -244,7 +244,7 @@ static void cdv_intel_lvds_restore(struct drm_connector *connector) { } -static int cdv_intel_lvds_mode_valid(struct drm_connector *connector, +static enum drm_mode_status cdv_intel_lvds_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_device *dev = connector->dev; diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c index acb3848ef..fe020926e 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c @@ -346,7 +346,7 @@ static int mdfld_dsi_connector_get_modes(struct drm_connector *connector) return 0; } -static int mdfld_dsi_connector_mode_valid(struct drm_connector *connector, +static enum drm_mode_status mdfld_dsi_connector_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct mdfld_dsi_connector *dsi_connector = diff --git a/drivers/gpu/drm/gma500/oaktrail_hdmi.c b/drivers/gpu/drm/gma500/oaktrail_hdmi.c index 8b2eb32ee..78566a80a 100644 --- a/drivers/gpu/drm/gma500/oaktrail_hdmi.c +++ b/drivers/gpu/drm/gma500/oaktrail_hdmi.c @@ -509,7 +509,7 @@ static void oaktrail_hdmi_dpms(struct drm_encoder *encoder, int mode) HDMI_WRITE(HDMI_VIDEO_REG, temp); } -static int oaktrail_hdmi_mode_valid(struct drm_connector *connector, +static enum drm_mode_status oaktrail_hdmi_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { if (mode->clock > 165000) diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c index 84507912b..8dc2b19f9 100644 --- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c +++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c @@ -1157,7 +1157,7 @@ static void psb_intel_sdvo_dpms(struct drm_encoder *encoder, int mode) return; } -static int psb_intel_sdvo_mode_valid(struct drm_connector *connector, +static enum drm_mode_status psb_intel_sdvo_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct psb_intel_sdvo *psb_intel_sdvo = intel_attached_sdvo(connector); -- 2.17.0