Skip to contentSkip to conversation

Question regarding serial_core.h port type

DISCUSSION Johannes Thumshirn 2 participants 3 messages Apr 15, 2014 – Apr 16, 2014 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I have a question regarding the port type constants in serial_core.h. Is there any "official" assignment scheme, or is it ok to just grab/append an unused number?

Or is it even possible/allowed to reuse an existing number from the list?

Regards,
Johannes

maintainer
#1 lore raw
Quoted 5 lines · Johannes Thumshirn

Hi,

I have a question regarding the port type constants in serial_core.h. Is there any "official" assignment scheme, or is it ok to just grab/append an unused number?

You can get a new number when you submit a patch with your driver.

Quoted 1 line

Or is it even possible/allowed to reuse an existing number from the list?

No, please don't do that.

thanks,

greg k-h

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 5 lines · Johannes Thumshirn

Hi,

I have a question regarding the port type constants in serial_core.h. Is there any "official" assignment scheme, or is it ok to just grab/append an unused number?

You can get a new number when you submit a patch with your driver.

I'll then add it with my driver patch.

Quoted 3 lines
Quoted 1 line

Or is it even possible/allowed to reuse an existing number from the list?

No, please don't do that.

OK, I expected this answer. Just wanted to be sure.

Thanks,
Johannes