From patchwork Wed Aug 24 07:35:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 74546 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp175930qga; Wed, 24 Aug 2016 00:35:33 -0700 (PDT) X-Received: by 10.66.193.163 with SMTP id hp3mr3006492pac.73.1472024133803; Wed, 24 Aug 2016 00:35:33 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id xv4si8307726pab.153.2016.08.24.00.35.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2016 00:35:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28F0D6E7F1; Wed, 24 Aug 2016 07:35:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4754D6E7F1 for ; Wed, 24 Aug 2016 07:35:30 +0000 (UTC) Received: by mail-wm0-x235.google.com with SMTP id o80so13355556wme.1 for ; Wed, 24 Aug 2016 00:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=CHSzaso2y5Yb50TxGJLbtelQyQkkMMJyyj9sMumo4tM=; b=gtRe7HJUjKjOfFajX7wLUJyEo2DKVqvzNCxRe2LV+0iZ9vDobD27++n66o39E4MmHM hfaCpnFCF8P8PcYme5SXnN8dh4MdghYCD5x3lPKHJKHMxGdmD/2q0OHr4o+CzAFafVj+ OdmAC9de9/7hDK8sW4JG8BUEHsOJxeKI39sJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CHSzaso2y5Yb50TxGJLbtelQyQkkMMJyyj9sMumo4tM=; b=nHj2p4slmMhfsyQ/oZZW/yAW0OLAAxmCKk812qcdMSUg7ICqSQ40EIxbJ/yF0gt4ni 9LjaPO/PIKq6PbUP/3UNFJolSShEXtuo8/9ZW3UcmAjyD18nhd0YDULjCJjaDTA8l/t+ 9ZYbIRs0pWU5P9HnsZnnulPubk3VMxG238o83hSDsje5bC0HxSuqQ65rwrAosy4TJYED aCzK8OC0tIOLWN87Al6qvz1z4n0ObkPh+S6UuwvEyUngLnn81/nIE6Z2ti0lwYLlClaR dg/rOhnPTdesf90p6qZd1P690h2hI7nTkFPnysFSqa+xqeHhDcmF7i4shQXuyCqOkq77 HCkA== X-Gm-Message-State: AEkoouvncwEVkFLa1TKqP3Yvi3tD4+Z0lIaTAxZv/a+HLYrFMWFw/Tg7BM1WoWqfAH1DZYDg X-Received: by 10.28.183.135 with SMTP id h129mr25103250wmf.2.1472024128812; Wed, 24 Aug 2016 00:35:28 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.85.198]) by smtp.gmail.com with ESMTPSA id r16sm32041780wme.16.2016.08.24.00.35.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 00:35:28 -0700 (PDT) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, vincent.abriou@st.com Subject: [PATCH] drm: sti: fix coccicheck warnings Date: Wed, 24 Aug 2016 09:35:20 +0200 Message-Id: <1472024120-7213-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: kernel@stlinux.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix four warnings shown by coccicheck. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/sti/sti_hdmi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index fedc17f..c6aa291 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c @@ -569,7 +569,7 @@ static void hdmi_swreset(struct sti_hdmi *hdmi) /* Wait reset completed */ wait_event_interruptible_timeout(hdmi->wait_event, - hdmi->event_received == true, + hdmi->event_received, msecs_to_jiffies (HDMI_TIMEOUT_SWRESET)); @@ -1181,7 +1181,7 @@ static void hdmi_audio_shutdown(struct device *dev, void *data) HDMI_AUD_CFG_ONE_BIT_INVALID; hdmi_write(hdmi, audio_cfg, HDMI_AUDIO_CFG); - hdmi->audio.enabled = 0; + hdmi->audio.enabled = false; hdmi_audio_infoframe_config(hdmi); } @@ -1213,7 +1213,7 @@ static int hdmi_audio_hw_params(struct device *dev, return -EINVAL; } - audio.enabled = 1; + audio.enabled = true; ret = hdmi_audio_configure(hdmi, &audio); if (ret < 0) @@ -1265,7 +1265,7 @@ static int sti_hdmi_register_audio_driver(struct device *dev, DRM_DEBUG_DRIVER("\n"); - hdmi->audio.enabled = 0; + hdmi->audio.enabled = false; hdmi->audio_pdev = platform_device_register_data( dev, HDMI_CODEC_DRV_NAME, PLATFORM_DEVID_AUTO,