OSDN Git Service

staging: greybus: add extra space around OR operator
authorIoannis Valasakis <code@wizofe.uk>
Fri, 9 Nov 2018 13:54:36 +0000 (13:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 17:49:03 +0000 (09:49 -0800)
Add extra spaces around the OR operator.
Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/greybus_protocols.h

index f38f4a8..5783f71 100644 (file)
@@ -866,10 +866,10 @@ struct gb_pwm_disable_request {
 /* Should match up with modes in linux/spi/spi.h */
 #define GB_SPI_MODE_CPHA               0x01            /* clock phase */
 #define GB_SPI_MODE_CPOL               0x02            /* clock polarity */
-#define GB_SPI_MODE_MODE_0             (0|0)           /* (original MicroWire) */
-#define GB_SPI_MODE_MODE_1             (0|GB_SPI_MODE_CPHA)
-#define GB_SPI_MODE_MODE_2             (GB_SPI_MODE_CPOL|0)
-#define GB_SPI_MODE_MODE_3             (GB_SPI_MODE_CPOL|GB_SPI_MODE_CPHA)
+#define GB_SPI_MODE_MODE_0             (0 | 0)         /* (original MicroWire) */
+#define GB_SPI_MODE_MODE_1             (0 | GB_SPI_MODE_CPHA)
+#define GB_SPI_MODE_MODE_2             (GB_SPI_MODE_CPOL | 0)
+#define GB_SPI_MODE_MODE_3             (GB_SPI_MODE_CPOL | GB_SPI_MODE_CPHA)
 #define GB_SPI_MODE_CS_HIGH            0x04            /* chipselect active high? */
 #define GB_SPI_MODE_LSB_FIRST          0x08            /* per-word bits-on-wire */
 #define GB_SPI_MODE_3WIRE              0x10            /* SI/SO signals shared */