[coreboot-gerrit] New patch to review for coreboot: util/iotools: remove trailing whitespace
Martin Roth (martinroth@google.com)
gerrit at coreboot.org
Wed Oct 12 22:41:05 CEST 2016
Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17012
-gerrit
commit e5539ffd9f43eedc79568cdc6d7c16b536851523
Author: Martin Roth <martinroth at google.com>
Date: Wed Oct 12 12:35:10 2016 -0600
util/iotools: remove trailing whitespace
Change-Id: I3d135cdba151770e3e76435ce2ef5eba9447bd3c
Signed-off-by: Martin Roth <martinroth at google.com>
---
util/iotools/commands.c | 2 +-
util/iotools/linux-i2c-dev.h | 52 ++++++++++++++++++++++----------------------
util/iotools/pci_rw.c | 2 +-
3 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/util/iotools/commands.c b/util/iotools/commands.c
index c0abe83..e5dfec2 100644
--- a/util/iotools/commands.c
+++ b/util/iotools/commands.c
@@ -23,7 +23,7 @@
#include <sys/io.h>
#endif /* #ifdef ARCH_X86 */
-/* Provide shared parameters the describe the size of the operation for
+/* Provide shared parameters the describe the size of the operation for
* subcommand implementations. */
#define MAKE_SIZE_PARAM(size_) \
diff --git a/util/iotools/linux-i2c-dev.h b/util/iotools/linux-i2c-dev.h
index 9a45fb0..070365a 100644
--- a/util/iotools/linux-i2c-dev.h
+++ b/util/iotools/linux-i2c-dev.h
@@ -34,7 +34,7 @@
*/
struct i2c_msg {
__u16 addr; /* slave address */
- unsigned short flags;
+ unsigned short flags;
#define I2C_M_TEN 0x10 /* we have a ten bit chip address */
#define I2C_M_RD 0x01
#define I2C_M_NOSTART 0x4000
@@ -53,21 +53,21 @@ struct i2c_msg {
#define I2C_FUNC_10BIT_ADDR 0x00000002
#define I2C_FUNC_PROTOCOL_MANGLING 0x00000004 /* I2C_M_{REV_DIR_ADDR,NOSTART,..} */
#define I2C_FUNC_SMBUS_HWPEC_CALC 0x00000008 /* SMBus 2.0 */
-#define I2C_FUNC_SMBUS_READ_WORD_DATA_PEC 0x00000800 /* SMBus 2.0 */
-#define I2C_FUNC_SMBUS_WRITE_WORD_DATA_PEC 0x00001000 /* SMBus 2.0 */
+#define I2C_FUNC_SMBUS_READ_WORD_DATA_PEC 0x00000800 /* SMBus 2.0 */
+#define I2C_FUNC_SMBUS_WRITE_WORD_DATA_PEC 0x00001000 /* SMBus 2.0 */
#define I2C_FUNC_SMBUS_PROC_CALL_PEC 0x00002000 /* SMBus 2.0 */
#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL_PEC 0x00004000 /* SMBus 2.0 */
#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL 0x00008000 /* SMBus 2.0 */
-#define I2C_FUNC_SMBUS_QUICK 0x00010000
-#define I2C_FUNC_SMBUS_READ_BYTE 0x00020000
-#define I2C_FUNC_SMBUS_WRITE_BYTE 0x00040000
-#define I2C_FUNC_SMBUS_READ_BYTE_DATA 0x00080000
-#define I2C_FUNC_SMBUS_WRITE_BYTE_DATA 0x00100000
-#define I2C_FUNC_SMBUS_READ_WORD_DATA 0x00200000
-#define I2C_FUNC_SMBUS_WRITE_WORD_DATA 0x00400000
-#define I2C_FUNC_SMBUS_PROC_CALL 0x00800000
-#define I2C_FUNC_SMBUS_READ_BLOCK_DATA 0x01000000
-#define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA 0x02000000
+#define I2C_FUNC_SMBUS_QUICK 0x00010000
+#define I2C_FUNC_SMBUS_READ_BYTE 0x00020000
+#define I2C_FUNC_SMBUS_WRITE_BYTE 0x00040000
+#define I2C_FUNC_SMBUS_READ_BYTE_DATA 0x00080000
+#define I2C_FUNC_SMBUS_WRITE_BYTE_DATA 0x00100000
+#define I2C_FUNC_SMBUS_READ_WORD_DATA 0x00200000
+#define I2C_FUNC_SMBUS_WRITE_WORD_DATA 0x00400000
+#define I2C_FUNC_SMBUS_PROC_CALL 0x00800000
+#define I2C_FUNC_SMBUS_READ_BLOCK_DATA 0x01000000
+#define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA 0x02000000
#define I2C_FUNC_SMBUS_READ_I2C_BLOCK 0x04000000 /* I2C-like block xfer */
#define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK 0x08000000 /* w/ 1-byte reg. addr. */
#define I2C_FUNC_SMBUS_READ_I2C_BLOCK_2 0x10000000 /* I2C-like block xfer */
@@ -108,10 +108,10 @@ struct i2c_msg {
I2C_FUNC_SMBUS_WRITE_BLOCK_DATA_PEC | \
I2C_FUNC_SMBUS_I2C_BLOCK
-/*
- * Data for SMBus Messages
+/*
+ * Data for SMBus Messages
*/
-#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */
+#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */
#define I2C_SMBUS_I2C_BLOCK_MAX 32 /* Not specified but we use same structure */
union i2c_smbus_data {
__u8 byte;
@@ -125,11 +125,11 @@ union i2c_smbus_data {
#define I2C_SMBUS_READ 1
#define I2C_SMBUS_WRITE 0
-/* SMBus transaction types (size parameter in the above functions)
+/* SMBus transaction types (size parameter in the above functions)
Note: these no longer correspond to the (arbitrary) PIIX4 internal codes! */
#define I2C_SMBUS_QUICK 0
#define I2C_SMBUS_BYTE 1
-#define I2C_SMBUS_BYTE_DATA 2
+#define I2C_SMBUS_BYTE_DATA 2
#define I2C_SMBUS_WORD_DATA 3
#define I2C_SMBUS_PROC_CALL 4
#define I2C_SMBUS_BLOCK_DATA 5
@@ -142,8 +142,8 @@ union i2c_smbus_data {
/* ----- commands for the ioctl like i2c_command call:
- * note that additional calls are defined in the algorithm and hw
- * dependent layers - these can be listed here, or see the
+ * note that additional calls are defined in the algorithm and hw
+ * dependent layers - these can be listed here, or see the
* corresponding header files.
*/
/* -> bit-adapter specific ioctls */
@@ -191,7 +191,7 @@ struct i2c_rdwr_ioctl_data {
};
-static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,
+static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,
int size, union i2c_smbus_data *data)
{
struct i2c_smbus_ioctl_data args;
@@ -208,7 +208,7 @@ static inline __s32 i2c_smbus_write_quick(int file, __u8 value)
{
return i2c_smbus_access(file,value,0,I2C_SMBUS_QUICK,NULL);
}
-
+
static inline __s32 i2c_smbus_read_byte(int file)
{
union i2c_smbus_data data;
@@ -234,7 +234,7 @@ static inline __s32 i2c_smbus_read_byte_data(int file, __u8 command)
return 0x0FF & data.byte;
}
-static inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,
__u8 value)
{
union i2c_smbus_data data;
@@ -253,7 +253,7 @@ static inline __s32 i2c_smbus_read_word_data(int file, __u8 command)
return 0x0FFFF & data.word;
}
-static inline __s32 i2c_smbus_write_word_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_word_data(int file, __u8 command,
__u16 value)
{
union i2c_smbus_data data;
@@ -275,7 +275,7 @@ static inline __s32 i2c_smbus_process_call(int file, __u8 command, __u16 value)
/* Returns the number of read bytes */
-static inline __s32 i2c_smbus_read_block_data(int file, __u8 command,
+static inline __s32 i2c_smbus_read_block_data(int file, __u8 command,
__u8 *values)
{
union i2c_smbus_data data;
@@ -290,7 +290,7 @@ static inline __s32 i2c_smbus_read_block_data(int file, __u8 command,
}
}
-static inline __s32 i2c_smbus_write_block_data(int file, __u8 command,
+static inline __s32 i2c_smbus_write_block_data(int file, __u8 command,
__u8 length, __u8 *values)
{
union i2c_smbus_data data;
diff --git a/util/iotools/pci_rw.c b/util/iotools/pci_rw.c
index b3c29e9..1e0108b 100644
--- a/util/iotools/pci_rw.c
+++ b/util/iotools/pci_rw.c
@@ -88,7 +88,7 @@ pci_read_x(int argc, const char *argv[], const struct cmd_info *info)
dev = strtoul(argv[arg++], NULL, 0);
func = strtoul(argv[arg++], NULL, 0);
reg = strtoul(argv[arg++], NULL, 0);
-
+
fd = open_device(seg, bus, dev, func, O_RDONLY);
if (fd < 0) {
More information about the coreboot-gerrit
mailing list