[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 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.

> 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.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.