From patchwork Tue Jun 20 10:23:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 105996 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1291319qgd; Tue, 20 Jun 2017 03:23:44 -0700 (PDT) X-Received: by 10.98.202.21 with SMTP id n21mr24778818pfg.158.1497954224584; Tue, 20 Jun 2017 03:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497954224; cv=none; d=google.com; s=arc-20160816; b=l2UBK36h7t/ilLfqN+cG9xqkXGZFpwAtOXsIa/kXx7cMZxx3Pkl+Kw5ZhFJ7S7JALm sKni+frfhtsd7zPRVfY3q8/orXDCakb2hIDHWXxCKBrftevUbWub+GMNbBVnTFS8E8Jm xdSFEyWlmxOXDT+27XUFVcE3ueoDVaEEZcLo5WdCB5LeA1ZK65xvuGyeHjTMn1kTy1XJ UBx3to7s0u9SsDDhMpnWP9agZEJXr5JJS5xGQfQtiNF0b41igGAxo6pl5t1Jn8pWuEH+ 257nZ88+fctG9Zfd57R9KulZMRIO04PLOb0D5IIQD2SPMP5SBOFuvmXKtRSpR0hFLs7Z qU8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=yvYGXzjXJ69EIXk8jv4AWrcCGGpVUyBFvwC3FGcLOxc=; b=aqqzVjgiHZL6InHY8prRLYAd41fHZe8PeBugjEJKlSF3yKDPTWsO2xUIWKO5dm9ZW9 gTqci9DOJB8WMgYw6Gs9cmknXuDE2f38AWE8Xp3+0C77OKr1LkmqiF8RtK6hUawEoaXj CEh85CQ0jHXGni1BiXrvv4zdDqfc+qjh5RxZtPKUB/us98DYPGwdk7KnNF0fjTuFbgCr BowEAfqh+sZgHWW+RUrykHa5i4CNGu8F9XdQEZSQJ7lNqDfRtn9rCJEWSJQQ2Azt1+yM enHvrKmiAImNsD/j/Pu3WBDtqCrYz6E+AHQwcmqnseSal5MKGDVvbZU6ir/2P/PeCyO6 wO7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si10270071pgd.374.2017.06.20.03.23.44; Tue, 20 Jun 2017 03:23:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751920AbdFTKXg (ORCPT + 25 others); Tue, 20 Jun 2017 06:23:36 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:56341 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751598AbdFTKXd (ORCPT ); Tue, 20 Jun 2017 06:23:33 -0400 Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.9]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id v5KANK1X007439; Tue, 20 Jun 2017 11:23:21 +0100 From: Liviu Dudau To: Daniel Vetter Cc: Jani Nikula , Sean Paul , David Airlie , DRI devel , LKML , Liviu Dudau Subject: [PATCH] drm: Convert CMA fbdev console suspend helpers to use bool Date: Tue, 20 Jun 2017 11:23:20 +0100 Message-Id: <20170620102320.8849-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170620093729.4wldbtug4vdflcll@phenom.ffwll.local> References: <20170620093729.4wldbtug4vdflcll@phenom.ffwll.local> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drm_fbdev_cma_set_suspend{,_unlocked} use an integer parameter to describe whether the intended state is a suspend or a resume. It then passes the value to drm_fb_helper_set_suspend{,_unlocked} which uses a boolean. Switch to using bool everywhere. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/drm_fb_cma_helper.c | 4 ++-- include/drm/drm_fb_cma_helper.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.13.1 diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c index 53f9bdf470d7..ade319d10e70 100644 --- a/drivers/gpu/drm/drm_fb_cma_helper.c +++ b/drivers/gpu/drm/drm_fb_cma_helper.c @@ -640,7 +640,7 @@ EXPORT_SYMBOL_GPL(drm_fbdev_cma_hotplug_event); * Calls drm_fb_helper_set_suspend, which is a wrapper around * fb_set_suspend implemented by fbdev core. */ -void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, int state) +void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, bool state) { if (fbdev_cma) drm_fb_helper_set_suspend(&fbdev_cma->fb_helper, state); @@ -657,7 +657,7 @@ EXPORT_SYMBOL(drm_fbdev_cma_set_suspend); * fb_set_suspend implemented by fbdev core. */ void drm_fbdev_cma_set_suspend_unlocked(struct drm_fbdev_cma *fbdev_cma, - int state) + bool state) { if (fbdev_cma) drm_fb_helper_set_suspend_unlocked(&fbdev_cma->fb_helper, diff --git a/include/drm/drm_fb_cma_helper.h b/include/drm/drm_fb_cma_helper.h index 199a63f48659..a323781afc3f 100644 --- a/include/drm/drm_fb_cma_helper.h +++ b/include/drm/drm_fb_cma_helper.h @@ -24,9 +24,9 @@ void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma); void drm_fbdev_cma_restore_mode(struct drm_fbdev_cma *fbdev_cma); void drm_fbdev_cma_hotplug_event(struct drm_fbdev_cma *fbdev_cma); -void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, int state); +void drm_fbdev_cma_set_suspend(struct drm_fbdev_cma *fbdev_cma, bool state); void drm_fbdev_cma_set_suspend_unlocked(struct drm_fbdev_cma *fbdev_cma, - int state); + bool state); void drm_fb_cma_destroy(struct drm_framebuffer *fb); int drm_fb_cma_create_handle(struct drm_framebuffer *fb,