Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 1 | From 2723219c08726efa08a6bad04ffb775f850a96bc Mon Sep 17 00:00:00 2001 |
| 2 | From: Aaron Conole <aconole@redhat.com> |
| 3 | Date: Mon, 3 Aug 2020 15:23:28 -0400 |
| 4 | Subject: [PATCH 6/9] ecp22: make enum a type rather than instance |
| 5 | |
| 6 | The enum defined in the qbg header is setup as a discreet instance |
| 7 | rather than a type. Fix this. |
| 8 | |
| 9 | Signed-off-by: Aaron Conole <aconole@redhat.com> |
| 10 | --- |
| 11 | include/qbg_ecp22.h | 4 ++-- |
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | diff --git a/include/qbg_ecp22.h b/include/qbg_ecp22.h |
| 15 | index 567f6df..fe66bb3 100644 |
| 16 | --- a/include/qbg_ecp22.h |
| 17 | +++ b/include/qbg_ecp22.h |
| 18 | @@ -49,10 +49,10 @@ enum { /* ECP Transmit states */ |
| 19 | ECP22_TX_ERROR |
| 20 | }; |
| 21 | |
| 22 | -enum { |
| 23 | +enum ecp22_mode { |
| 24 | ECP22_REQUEST = 0, |
| 25 | ECP22_ACK |
| 26 | -} ecp22_mode; |
| 27 | +}; |
| 28 | |
| 29 | struct ecp22_hdr { /* ECP22 header */ |
| 30 | u16 ver_op_sub; /* ECP22 version, operation, subtype */ |
| 31 | -- |
| 32 | 2.28.0 |
| 33 | |