Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5de3b090 authored by Simon Sandström's avatar Simon Sandström Committed by Greg Kroah-Hartman
Browse files

staging: pi433: break long lines in pi433_if.c



Breaks long lines in pi433_if.c, fixing checkpatch.pl warnings:
"WARNING: line over 80 characters"

Signed-off-by: default avatarSimon Sandström <simon@nikanor.nu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e71e17d3
Loading
Loading
Loading
Loading
+12 −4
Original line number Original line Diff line number Diff line
@@ -591,13 +591,17 @@ pi433_tx_thread(void *data)
		 */
		 */
		retval = kfifo_out(&device->tx_fifo, &tx_cfg, sizeof(tx_cfg));
		retval = kfifo_out(&device->tx_fifo, &tx_cfg, sizeof(tx_cfg));
		if (retval != sizeof(tx_cfg)) {
		if (retval != sizeof(tx_cfg)) {
			dev_dbg(device->dev, "reading tx_cfg from fifo failed: got %d byte(s), expected %d", retval, (unsigned int)sizeof(tx_cfg));
			dev_dbg(device->dev,
				"reading tx_cfg from fifo failed: got %d byte(s), expected %d",
				retval, (unsigned int)sizeof(tx_cfg));
			continue;
			continue;
		}
		}


		retval = kfifo_out(&device->tx_fifo, &size, sizeof(size_t));
		retval = kfifo_out(&device->tx_fifo, &size, sizeof(size_t));
		if (retval != sizeof(size_t)) {
		if (retval != sizeof(size_t)) {
			dev_dbg(device->dev, "reading msg size from fifo failed: got %d, expected %d", retval, (unsigned int)sizeof(size_t));
			dev_dbg(device->dev,
				"reading msg size from fifo failed: got %d, expected %d",
				retval, (unsigned int)sizeof(size_t));
			continue;
			continue;
		}
		}


@@ -619,7 +623,11 @@ pi433_tx_thread(void *data)


		/* add length byte, if requested */
		/* add length byte, if requested */
		if (tx_cfg.enable_length_byte  == OPTION_ON)
		if (tx_cfg.enable_length_byte  == OPTION_ON)
			device->buffer[position++] = size - 1; /* according to spec length byte itself must be excluded from the length calculation */
			/*
			 * according to spec, length byte itself must be
			 * excluded from the length calculation
			 */
			device->buffer[position++] = size - 1;


		/* add adr byte, if requested */
		/* add adr byte, if requested */
		if (tx_cfg.enable_address_byte == OPTION_ON)
		if (tx_cfg.enable_address_byte == OPTION_ON)
@@ -1047,7 +1055,7 @@ static int setup_gpio(struct pi433_device *device)
		/* configure irq */
		/* configure irq */
		device->irq_num[i] = gpiod_to_irq(device->gpiod[i]);
		device->irq_num[i] = gpiod_to_irq(device->gpiod[i]);
		if (device->irq_num[i] < 0) {
		if (device->irq_num[i] < 0) {
			device->gpiod[i] = ERR_PTR(-EINVAL);//(struct gpio_desc *)device->irq_num[i];
			device->gpiod[i] = ERR_PTR(-EINVAL);
			return device->irq_num[i];
			return device->irq_num[i];
		}
		}
		retval = request_irq(device->irq_num[i],
		retval = request_irq(device->irq_num[i],