Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2258661ybm; Sun, 31 May 2020 14:06:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVsry+tUI9YuoOSrRfDT8ptTQLgqfNppEaWwoAJmio5oGY3tI6GqkfzKy48q2uRY2ZzX+H X-Received: by 2002:a17:906:a88c:: with SMTP id ha12mr16407578ejb.220.1590959213967; Sun, 31 May 2020 14:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590959213; cv=none; d=google.com; s=arc-20160816; b=zPsUebgVkwu5U23U9LFHk0aeHe4Lp0Ly5hC6Ah4i2pa9Os5mhGaJ7UeeZuoJ8HqtPK C8KpP22vcVI/AK+53ia/0hlF7PtjiNq0nW/hfnezVLIJREtazsh+EdM300jTCZ48RC2n sUxIBR1LuYY86kSGXSZ4j4p7IzsHaUFtRRWzMg6NM2+naRhRGhV4MU7C2AbeKHNGgMAI PjMt9M7a0o0APJElT9WTD8WBPhiwjUfCZX3OM5lRPcqr6GqTY949FKUS18++Usdsh9lM e0JWlLPqI4dwLfdjtXLbw6OmVv2dwWaGwADZ8BWRCY78DYMvI3hzwLi5w4LYep0BOSkW JdcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=m00GxMFVaIna7HFrm/Gn+n4P1Bym2OcrjdRNSEjdBQc=; b=EpijUYQCYwh3Gz+ivCKkxXw/cLYwvuERsbqBLe2oQKARaPHBPSCh5vjk1d+I9W+m/C 5bjoPwsj/dHjKKy/2IWgEJog1JUuG0UccYceXZMEHOr+bQB1I9iWtnQjjIiLPG3w6PrI 4+39JymRiKK7gnfo51/PwPcdA7i2i/p9+z0ZI2te4KucdN5kkjorFyPBq9DHBrI3HfcL o5B8RL7FKUNAzISHxflfB+n5a+cpXlM1QSanSjxcUy9Cznto7cmZqv6dpfSPVS6/7/SE BwcAkRjdVbX0xPxU7fO8LS+PU+B39HKXo0ZcbQckGujqUmfThOQbv0wCx+ykz6p4y9Lw Va2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw8si1632775ejb.83.2020.05.31.14.06.31; Sun, 31 May 2020 14:06:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728428AbgEaVBc (ORCPT + 99 others); Sun, 31 May 2020 17:01:32 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:36822 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgEaVBb (ORCPT ); Sun, 31 May 2020 17:01:31 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id AFC83804BB; Sun, 31 May 2020 23:01:28 +0200 (CEST) Date: Sun, 31 May 2020 23:01:27 +0200 From: Sam Ravnborg To: Colin King Cc: Greg Kroah-Hartman , Oliver Graute , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string Message-ID: <20200531210127.GD138722@ravnborg.org> References: <20200521135038.345878-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200521135038.345878-1-colin.king@canonical.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=G88y7es5 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=DfNHnWVPAAAA:8 a=e5mUnYsNAAAA:8 a=O1M_s53xj7QJbslopEUA:9 a=CjuIK1q_8ugA:10 a=rjTVMONInIDnV1a_A2c_:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin/Greg. On Thu, May 21, 2020 at 02:50:38PM +0100, Colin King wrote: > 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 Patch does not apply to drm-misc-next, seems to be a staging thing. So do not expext the DRM people to pick it up. Sam > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel