[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 4/7] serial: Seperate the PCI device ids and parameters
On Mon, Mar 10, 2014 at 04:30:44PM +0000, Jan Beulich wrote: > >>> On 10.03.14 at 17:23, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> > >>> wrote: > > On Mon, Mar 10, 2014 at 09:41:40AM +0000, Jan Beulich wrote: > >> >>> On 07.03.14 at 20:01, Konrad Rzeszutek Wilk <konrad@xxxxxxxxxx> wrote: > >> > @@ -96,28 +100,27 @@ struct ns16550_config_mmio { > >> > > >> > > >> > #ifdef HAS_PCI > >> > +enum ns16550_config_param_nr { > >> > >> Perhaps better e.g. _kind or _idx rather than _nr? But in the end > >> you don't use the enum tag anyway, so you could as well leave out > >> the tag altogether. > > > > OK, will replace it with #defines. > > But that wasn't what I meant. My apologies. My brain parsed this statement: 'don't use the enum tag.. leave out the tag altogether' as the 'enum' not being useful. But you meant the '_nr'. > > > How does that look to you? > > Quite okay. I think that using an enum here is quite appropriate/ > desirable here, but I also don't heavily object the #define approach. Heh. Let me revert it back to the enum as it will give future developers a clear path of how to expand the list of parameters for other serial devices. > > Jan > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |