linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] omapdrm/dss/dsi.c:modify 'u32'->'int'
@ 2021-03-17  9:48 ChunyouTang
  2021-03-17 11:54 ` Tomi Valkeinen
  0 siblings, 1 reply; 2+ messages in thread
From: ChunyouTang @ 2021-03-17  9:48 UTC (permalink / raw)
  To: tomba, airlied, daniel, sebastian.reichel, laurent.pinchart
  Cc: dri-devel, linux-kernel, tangchunyou

From: tangchunyou <tangchunyou@yulong.com>

1.the type of mipi_dsi_create_packet id int
2.u32 can not < 0

Signed-off-by: tangchunyou <tangchunyou@yulong.com>
---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index 8e11612..11c502d 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -2149,7 +2149,7 @@ static int dsi_vc_send_short(struct dsi_data *dsi, int vc,
 			     const struct mipi_dsi_msg *msg)
 {
 	struct mipi_dsi_packet pkt;
-	u32 r;
+	int r;
 
 	r = mipi_dsi_create_packet(&pkt, msg);
 	if (r < 0)
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] omapdrm/dss/dsi.c:modify 'u32'->'int'
  2021-03-17  9:48 [PATCH] omapdrm/dss/dsi.c:modify 'u32'->'int' ChunyouTang
@ 2021-03-17 11:54 ` Tomi Valkeinen
  0 siblings, 0 replies; 2+ messages in thread
From: Tomi Valkeinen @ 2021-03-17 11:54 UTC (permalink / raw)
  To: ChunyouTang
  Cc: dri-devel, linux-kernel, tangchunyou, airlied, daniel,
	sebastian.reichel, laurent.pinchart

Hi,

On 17/03/2021 11:48, ChunyouTang wrote:
> From: tangchunyou <tangchunyou@yulong.com>
> 
> 1.the type of mipi_dsi_create_packet id int
> 2.u32 can not < 0
> 
> Signed-off-by: tangchunyou <tangchunyou@yulong.com>
> ---
>   drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
> index 8e11612..11c502d 100644
> --- a/drivers/gpu/drm/omapdrm/dss/dsi.c
> +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
> @@ -2149,7 +2149,7 @@ static int dsi_vc_send_short(struct dsi_data *dsi, int vc,
>   			     const struct mipi_dsi_msg *msg)
>   {
>   	struct mipi_dsi_packet pkt;
> -	u32 r;
> +	int r;
>   
>   	r = mipi_dsi_create_packet(&pkt, msg);
>   	if (r < 0)
> 

I have already applies a similar patch "drm/omap: dsi: fix unsigned 
expression compared with zero".

  Tomi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-17 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17  9:48 [PATCH] omapdrm/dss/dsi.c:modify 'u32'->'int' ChunyouTang
2021-03-17 11:54 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).