Put space(s) in required spots to comply with the kernel coding style.

Signed-off-by: Chase Metzger <chasemetzge...@gmail.com>
---
 drivers/staging/pi433/pi433_if.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index ad89504655af..ad99f6527bd6 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -323,9 +323,9 @@ pi433_receive(void *data)
        dev->interrupt_rx_allowed = false;
 
        /* wait for any tx to finish */
-       dev_dbg(dev->dev,"rx: going to wait for any tx to finish");
+       dev_dbg(dev->dev, "rx: going to wait for any tx to finish");
        retval = wait_event_interruptible(dev->rx_wait_queue, !dev->tx_active);
-       if(retval) { /* wait was interrupted */
+       if (retval) { /* wait was interrupted */
                dev->interrupt_rx_allowed = true;
                wake_up_interruptible(&dev->tx_wait_queue);
                return retval;
@@ -373,7 +373,7 @@ pi433_receive(void *data)
                        goto abort;
                }
                bytes_total = dev->rx_cfg.fixed_message_length;
-               dev_dbg(dev->dev,"rx: msg len set to %d by fixed length", 
bytes_total);
+               dev_dbg(dev->dev, "rx: msg len set to %d by fixed length", 
bytes_total);
        } else {
                bytes_total = dev->rx_buffer_size;
                dev_dbg(dev->dev, "rx: msg len set to %d as requested by read", 
bytes_total);
@@ -582,7 +582,7 @@ pi433_tx_thread(void *data)
                device->free_in_fifo = FIFO_SIZE;
                position = 0;
                repetitions = tx_cfg.repetitions;
-               while((repetitions > 0) && (size > position)) {
+               while ((repetitions > 0) && (size > position)) {
                        if ((size - position) > device->free_in_fifo) {
                                /* msg to big for fifo - take a part */
                                int temp = device->free_in_fifo;
@@ -590,7 +590,7 @@ pi433_tx_thread(void *data)
                                rf69_write_fifo(spi,
                                                &buffer[position],
                                                temp);
-                               position +=temp;
+                               position += temp;
                        } else {
                                /* msg fits into fifo - take all */
                                device->free_in_fifo -= size;
@@ -882,7 +882,7 @@ static int setup_GPIOs(struct pi433_device *device)
                DIO1_irq_handler
        };
 
-       for (i=0; i<NUM_DIO; i++) {
+       for (i = 0; i < NUM_DIO; i++) {
                /* "construct" name and get the gpio descriptor */
                snprintf(name, sizeof(name), "DIO%d", i);
                device->gpiod[i] = gpiod_get(&device->spi->dev, name, 0 
/*GPIOD_IN*/);
@@ -898,7 +898,7 @@ static int setup_GPIOs(struct pi433_device *device)
                if (IS_ERR(device->gpiod[i])) {
                        retval = PTR_ERR(device->gpiod[i]);
                        /* release already allocated gpios */
-                       for (i--; i>=0; i--) {
+                       for (i--; i >= 0; i--) {
                                free_irq(device->irq_num[i], device);
                                gpiod_put(device->gpiod[i]);
                        }
@@ -938,7 +938,7 @@ static void free_GPIOs(struct pi433_device *device)
 {
        int i;
 
-       for (i=0; i<NUM_DIO; i++) {
+       for (i = 0; i < NUM_DIO; i++) {
                /* check if gpiod is valid */
                if (IS_ERR(device->gpiod[i]))
                        continue;
-- 
2.11.0

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to