driver: uart: make deprecation effective

Several macros were documented as deprecated but lacked the
infrastructure to produce deprecation warnings.  Add the deprecation
marker, and fix the in-tree references to the deprecated spellings.

Note that one non-deprecated macro should have been deprecated, and
is, referring to a newly added line control bit.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2019-11-02 10:19:17 -05:00 committed by Kumar Gala
commit a58d8ebaa6
10 changed files with 34 additions and 32 deletions

View file

@ -73,9 +73,9 @@
#define SET_CONTROL_LINE_STATE_DTR 0x01
/** Enhance enum uart_line_ctrl with CDC specific values */
#define USB_CDC_LINE_CTRL_BAUD_RATE LINE_CTRL_BAUD_RATE
#define USB_CDC_LINE_CTRL_DCD LINE_CTRL_DCD
#define USB_CDC_LINE_CTRL_DSR LINE_CTRL_DSR
#define USB_CDC_LINE_CTRL_BAUD_RATE UART_LINE_CTRL_BAUD_RATE
#define USB_CDC_LINE_CTRL_DCD UART_LINE_CTRL_DCD
#define USB_CDC_LINE_CTRL_DSR UART_LINE_CTRL_DSR
#define USB_CDC_LINE_CTRL_BREAK BIT(5)
#define USB_CDC_LINE_CTRL_RING_SIGNAL BIT(6)
#define USB_CDC_LINE_CTRL_FRAMING BIT(7)