forked from Mirrors/opensbi
all: Annotate some tables to have clang-format leave them alone
One of the shortcomings of clang-format is that it doesn't allow for aligned define tables, which is used for a number of constants. Add annotation to disable the automatic formatting where needed. Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:

committed by
Anup Patel

parent
97fb8c0e3b
commit
fbf986ac2a
@@ -50,6 +50,8 @@
|
||||
|
||||
#include <sbi/sbi_types.h>
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
/* Base register address */
|
||||
#define UARTHS_BASE_ADDR (0x38000000U)
|
||||
|
||||
@@ -74,6 +76,8 @@
|
||||
#define UARTHS_IP_TXWM 0x01
|
||||
#define UARTHS_IP_RXWM 0x02
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
struct uarths_txdata {
|
||||
/* Bits [7:0] is data */
|
||||
u32 data : 8;
|
||||
|
Reference in New Issue
Block a user