From 91d1e76fd168defce4132d1e308b68a2013a89df Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 7 Mar 2017 14:31:19 -0800 Subject: src/include: Remove spaces before ( and after ) Fix the following error messages found by checkpatch.pl: ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited before that close parenthesis ')' TEST=Build and run on Galileo Gen2 Change-Id: I2a9a0df640c51ff3efa83dde852dd6ff37ac3c06 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18651 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/include/device/azalia_device.h | 8 ++++---- src/include/device/pci_rom.h | 2 +- src/include/device/resource.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/include/device') diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h index 6aedf4b14f..2ca881cb13 100644 --- a/src/include/device/azalia_device.h +++ b/src/include/device/azalia_device.h @@ -37,10 +37,10 @@ extern const u32 pc_beep_verbs_size; const u32 cim_verb_data_size = sizeof(cim_verb_data) #define AZALIA_PIN_CFG(codec, pin, val) \ - (((codec) << 28) | ((pin) << 20) | ( 0x71c << 8) | ((val) & 0xff)), \ - (((codec) << 28) | ((pin) << 20) | ( 0x71d << 8) | (((val) >> 8) & 0xff)), \ - (((codec) << 28) | ((pin) << 20) | ( 0x71e << 8) | (((val) >> 16) & 0xff)), \ - (((codec) << 28) | ((pin) << 20) | ( 0x71f << 8) | (((val) >> 24) & 0xff)) + (((codec) << 28) | ((pin) << 20) | (0x71c << 8) | ((val) & 0xff)), \ + (((codec) << 28) | ((pin) << 20) | (0x71d << 8) | (((val) >> 8) & 0xff)), \ + (((codec) << 28) | ((pin) << 20) | (0x71e << 8) | (((val) >> 16) & 0xff)), \ + (((codec) << 28) | ((pin) << 20) | (0x71f << 8) | (((val) >> 24) & 0xff)) #define AZALIA_SUBVENDOR(codec, val) \ (((codec) << 28) | (0x01720 << 8) | ((val) & 0xff)), \ diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h index decd806e94..7266a8f34e 100644 --- a/src/include/device/pci_rom.h +++ b/src/include/device/pci_rom.h @@ -5,7 +5,7 @@ #include #define PCI_ROM_HDR 0xAA55 -#define PCI_DATA_HDR ((uint32_t) ( ('R' << 24) | ('I' << 16) | ('C' << 8) | 'P' )) +#define PCI_DATA_HDR ((uint32_t) (('R' << 24) | ('I' << 16) | ('C' << 8) | 'P')) #define PCI_RAM_IMAGE_START 0xD0000 #define PCI_VGA_RAM_IMAGE_START 0xC0000 diff --git a/src/include/device/resource.h b/src/include/device/resource.h index 1a8c451982..947bcddb65 100644 --- a/src/include/device/resource.h +++ b/src/include/device/resource.h @@ -50,7 +50,7 @@ struct resource { #define IOINDEX_SUBTRACTIVE_LINK(IDX) (IDX & 0xff) #define IOINDEX(IDX, LINK) (((LINK) << 16) + IDX) -#define IOINDEX_LINK(IDX) (( IDX & 0xf0000) >> 16) +#define IOINDEX_LINK(IDX) ((IDX & 0xf0000) >> 16) #define IOINDEX_IDX(IDX) (IDX & 0xffff) /* Generic resource helper functions */ -- cgit v1.2.3