board/prism/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -61,9 +61,8 @@ BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT);
#ifdef SECTION_IS_RW
const struct spi_device_t spi_devices[] = {
- [SPI_RGB0_DEVICE_ID] = {
- CONFIG_SPI_RGB_PORT,
- 2, /* 2: Fpclk/8 = 48Mhz/8 = 6Mhz */
+ [SPI_RGB0_DEVICE_ID] = { CONFIG_SPI_RGB_PORT, 2, /* 2: Fpclk/8 = 48Mhz/8
+ = 6Mhz */
GPIO_SPI1_CS1_L },
[SPI_RGB1_DEVICE_ID] = { CONFIG_SPI_RGB_PORT, 2, GPIO_SPI1_CS2_L },
};
@@ -150,8 +149,7 @@ const uint8_t rgbkbd_map[] = {
LED(13, 4), LED(14, 4), DELM, /* 41: " ' */
DELM, /* 42: (null) */
LED(15, 4), LED(16, 4), DELM, /* 43: enter */
- LED( 0, 5), LED( 1, 5),
- LED( 2, 5), DELM, /* 44: L-shift */
+ LED(0, 5), LED(1, 5), LED(2, 5), DELM, /* 44: L-shift */
DELM, /* 45: (null) */
LED(3, 5), DELM, /* 46: z */
LED(4, 5), DELM, /* 47: x */
@@ -164,15 +162,11 @@ const uint8_t rgbkbd_map[] = {
LED(12, 5), LED(13, 5), DELM, /* 54: . > */
LED(14, 5), LED(15, 5), DELM, /* 55: / ? */
DELM, /* 56: (null) */
- LED(16, 5), LED(17, 5),
- LED(18, 5), DELM, /* 57: R-shift */
- LED(17, 4), LED(18, 4),
- LED(19, 4), DELM, /* 58: L-ctrl */
+ LED(16, 5), LED(17, 5), LED(18, 5), DELM, /* 57: R-shift */
+ LED(17, 4), LED(18, 4), LED(19, 4), DELM, /* 58: L-ctrl */
LED(15, 0), DELM, /* 59: power */
- LED(17, 2), LED(18, 2),
- LED(19, 2), DELM, /* 60: L-alt */
- LED(17, 3), LED(18, 3),
- LED(19, 3), LED(20, 3),
+ LED(17, 2), LED(18, 2), LED(19, 2), DELM, /* 60: L-alt */
+ LED(17, 3), LED(18, 3), LED(19, 3), LED(20, 3),
LED(21, 3), DELM, /* 61: space */
LED(20, 2), DELM, /* 62: R-alt */
DELM, /* 63: (null) */
@@ -353,8 +347,7 @@ __override const char *board_read_serial(void)
int i;
for (i = 0; i < idlen && pos < sizeof(str); i++, pos += 2) {
- snprintf(&str[pos], sizeof(str)-pos,
- "%02x", id[i]);
+ snprintf(&str[pos], sizeof(str) - pos, "%02x", id[i]);
}
}
