diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-05-13 13:24:52 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-26 19:36:15 +0000 |
commit | a0ebf0a008670ece41529a2fce01882192331c6e (patch) | |
tree | af15cc38acca1fa811d819aa327abcc7d415552a /driver | |
parent | 2a4ac55edfbbbdcde605c323e07effcca5716e6f (diff) | |
download | chrome-ec-a0ebf0a008670ece41529a2fce01882192331c6e.tar.gz |
Queue: Add policies to queues
Policies give a convenient place to hook into the queue operations
and notify something that there is new space free in the queue or
new units added.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I94b2aa94b8e8d07911191bc19a39fa827623b117
Reviewed-on: https://chromium-review.googlesource.com/271791
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/mcdp28x0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/mcdp28x0.c b/driver/mcdp28x0.c index e7245bd2a5..afcb6f8e71 100644 --- a/driver/mcdp28x0.c +++ b/driver/mcdp28x0.c @@ -37,8 +37,8 @@ static inline void print_buffer(uint8_t *buf, int cnt) static inline void print_buffer(uint8_t *buf, int cnt) {} #endif -QUEUE_CONFIG(rx_queue, MCDP_INBUF_MAX, uint8_t); -QUEUE_CONFIG(tx_queue, MCDP_OUTBUF_MAX, uint8_t); +struct queue const rx_queue = QUEUE_NULL(MCDP_INBUF_MAX, uint8_t); +struct queue const tx_queue = QUEUE_NULL(MCDP_OUTBUF_MAX, uint8_t); struct usart_config const usart_mcdp; |