lkml.org 
[lkml]   [2022]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v6 tty-next 2/4] serial: 8250_pci1xxxx: Add driver for quad-uart support.
Date
> From: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> Sent: Thursday, December 1, 2022 3:10 PM
> To: Kumaravel Thiagarajan - I21417
> <Kumaravel.Thiagarajan@microchip.com>
> Subject: Re: [PATCH v6 tty-next 2/4] serial: 8250_pci1xxxx: Add driver for
> quad-uart support.
>
> > + {3, -1, -1, -1} /* PCI1p3 */
>
> Add comma also to the last item.
>
> This array can go outside of function's scope.

Okay, I will create a new function get_physical_port and declare static array inside the function.
I will call the function to get value from the array whenever required. The scope of the function
Will be throughout the file.

Thanks,
Tharun Kumar P

\
 
 \ /
  Last update: 2022-12-04 11:39    [W:0.279 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site