Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1434386ybk; Thu, 21 May 2020 06:52:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWOK9WrYYMCYDh+6NrQ6p/7Bgu1QM8/KV5e84ro3w9HTKTjdPL/SFM1q3YlWTyqJGcXlTD X-Received: by 2002:a17:906:90d4:: with SMTP id v20mr3520098ejw.480.1590069151030; Thu, 21 May 2020 06:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590069151; cv=none; d=google.com; s=arc-20160816; b=Ub7CgrV8f5I6FhGqvo6RwDZF+hs9alyNhueVzOOBuVv5ycoZLKLlu+WQ4G1/KPUGdo rQlLqLpDLG+Et+tq0qP9nlPdTvDdwxt3w4is+dk18CEZddoC8FSFePzWBxThDj3U0m3H t118tcIRr/laiFKD9m0qY8Qwl+yj/gKKf7sFHdPXaAoJUF6RSSTfxEG5ZeKC2SqUaigf r8OOYBhj6UF3tu3KdNn8HPUn3lb6+WhXhwowliVefwknaPmfQLcefr4CpuHFko4U7wJC vAevSQC5aqFz+bhZk5wVOtiQWQqWbDSvkCX3cl/mxU1w0lSsyQQGTIHDPaS3awCX2wdg +Bnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=t31NT0q5jYQvPfJsEtUIlq3dAKO/5XKboveq/aiysio=; b=qtewOTMjwwkxF0eM/bRABmqR9hWMIwzMdoHmLkXwwAEr6a9VkknD0BeQ6uLgzOcyCI eQBJlmx+LYjiPv879lETiUaXQXH/OVL/VLWbwcsie4gAwXuqWN+spVjG/I8271PPKJCD TcdcgqGfWFtIUk3JwEhx4ObrkoTgSqk4dToZ3/RyB/I54AGA86OOowuYdtGZqwYVgNoe QfcOOynr25oPLEh4POAiTqyO8atQ+x9RsWAf4fSpTit8XCgFePCAsJVOWqePRrxkIBG+ /A6q4kM1GjB2S74+Sv1AiWwbYeoEHq+EZnF8AFY323qUsKQg3BCk8m6lXz5F1/XOa79u 16/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 65si3435347edj.403.2020.05.21.06.52.07; Thu, 21 May 2020 06:52:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729614AbgEUNul (ORCPT + 99 others); Thu, 21 May 2020 09:50:41 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50074 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbgEUNul (ORCPT ); Thu, 21 May 2020 09:50:41 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jblao-0006b4-Gr; Thu, 21 May 2020 13:50:38 +0000 From: Colin King To: Greg Kroah-Hartman , Oliver Graute , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string Date: Thu, 21 May 2020 14:50:38 +0100 Message-Id: <20200521135038.345878-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Currently HSD20_IPS is defined as "true" and will always result in a non-zero result even if it is defined as "false" because it is an array and that will never be zero. Fix this by defining it as an integer 1 rather than a literal string. Addessses-Coverity: ("Array compared against 0") Fixes: f03c9b788472 ("staging: fbtft: fb_st7789v: Initialize the Display") Signed-off-by: Colin Ian King --- drivers/staging/fbtft/fb_st7789v.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index ebc17e05ecd0..3a280cc1892c 100644 --- a/drivers/staging/fbtft/fb_st7789v.c +++ b/drivers/staging/fbtft/fb_st7789v.c @@ -24,7 +24,7 @@ "D0 05 0A 09 08 05 2E 44 45 0F 17 16 2B 33\n" \ "D0 05 0A 09 08 05 2E 43 45 0F 16 16 2B 33" -#define HSD20_IPS "true" +#define HSD20_IPS 1 /** * enum st7789v_command - ST7789V display controller commands -- 2.25.1