Received: by 10.192.165.148 with SMTP id m20csp3699041imm; Mon, 23 Apr 2018 10:46:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lWXV7gwmd/3x+KZ1A1NaWfXeSQZ/vWlA3hWpaQrJBswTInjW2OLGg7q090JCALqwb/PFn X-Received: by 2002:a17:902:8501:: with SMTP id bj1-v6mr21305433plb.239.1524505600255; Mon, 23 Apr 2018 10:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524505600; cv=none; d=google.com; s=arc-20160816; b=omZVeGGNQDivyTH5qF/x3kyHVFNdbYGq85w9OpKfFSUMPjUVOifVlrMPQpSvpKlV4T rJAQAWrjZKDuJ/VmQkPASl442eVYCPcXSuDIrQeGm2HV6e1SlseDYw0dD1WnCXLk9VH0 Bj5Zp7VnjFk9iUx6OXC8ZltB103zOSdpZ7BfLT6oTvkqQht9M0+VhIj0GGSp2q7vcGYj nhSoUYBBrTs7TXu88L5Cg8zOeTZ66W2he2Br7hnHnmONcIPyNTXPiE8OO6AEtULqZx/8 ijToMscDm7QqY02C/1LNeqkil5ASiNLFDTBLQgemuw8lcZE/OHgmxo3DslRF5EwAOoRF vHHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=/LZvLPgfz3BuXz/6mKsg8kqRk24BL5+KlYiSpsX0VMs=; b=BLGgVmRono0741VrV+CCAawe+jGOib2QYddYn5HCia2VSIfvBOZERFPAAOYJ4YOvxs 0tUSUV7ONy2jkjsr6CCVLr19WX7eY8Tf3OBk62Nv6X2AtkFKTnZoJYjeMY73fSzwb0qu k0DRQOiXQwRYvCEYjIHDWmtm3frLouNkBJxHlD5Avhijhv5KxG2XX8IvJrNUWLJb3+0x H5NUOmvKCyb2+VMAhBxnRFmd4epGMBukUpbtZKqQjTg3gkMfEZcdHAWxzMmAuzLrkN+b 24+fK7lGK6Qei6xkLQEgU+LPD1vDES8eV89c4hKgESE0yILeOgcbEapEE1OU3WIqgCnA wpfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=hjn0CZLa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9-v6si11414268plr.70.2018.04.23.10.46.26; Mon, 23 Apr 2018 10:46:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=hjn0CZLa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932161AbeDWRpB (ORCPT + 99 others); Mon, 23 Apr 2018 13:45:01 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:37267 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755646AbeDWRo7 (ORCPT ); Mon, 23 Apr 2018 13:44:59 -0400 Received: by mail-lf0-f65.google.com with SMTP id b23-v6so16275387lfg.4 for ; Mon, 23 Apr 2018 10:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikanor-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/LZvLPgfz3BuXz/6mKsg8kqRk24BL5+KlYiSpsX0VMs=; b=hjn0CZLaMInbqt2brS7NQhc65FEvdqRJ2++CDYT4PxLKUfB9fIHfHG6YXPwmvSWDKd iYaRG2dEbSiMezR1Bnbevjj73uCyN2Mul/KBmXA7m7Zoibrwy6HzXInJzF63801zqvPo tO2oXIulOkSpBizbTEnB04nK7ON8q6DHQDNqYID1+bk+NzE7VMzYg1Pvdb4Kze7X+WWn YOffwIJGpHZ5xMyFseQE/rRb+YxW0f9kAvZ/XNhdGu0bep72AEoTj72HZoUmFmXCq27i gEZuFGs7By2o/sWhV6W+8cDMjnQNB78S3oQvpb0XgDtcS/Q/Coy/g7seYDFAC1Snw7K7 v/Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/LZvLPgfz3BuXz/6mKsg8kqRk24BL5+KlYiSpsX0VMs=; b=Hfh5ZJuJ2t4jJGJ3Hmh/7ocAEw7ZfJfIt3FA/aeXkvFAeLSAmsFVTHX3mDt8uyadbg Kp4M18+it9eR8OvcaedT3dsWK30riWymTaL2MludZuJ2UhzyTTGz8PMi2MgYzRD3KTvN 3Mn4IX4bua5EIGhQiZIrp1s21VlKqPyKy91faCS6sDp1QFBcdvCNj64OmUK7L/WemqaI nbfdjmZALLQtCZxG3NwcsEB0gHW8bzG22pnIZdfhsuHh0e1l28RNR6r02I0oXaXMHkn+ nzxHkZlhWq2wieMkT/a1QL6sFV2SM11Hv/mzPe1wkCia4ra9PRb/hERobbRegNKMpHcM tMkw== X-Gm-Message-State: ALQs6tCQQNtK04POoBjUOtEzBRTVDkQBYteuRHb7WFFpCRSeajDODPGv hWc2EnZjWDBaKejasVhh4u+UWQ== X-Received: by 10.46.146.13 with SMTP id k13mr14025520ljg.70.1524505498386; Mon, 23 Apr 2018 10:44:58 -0700 (PDT) Received: from kappa.nikanor.nu (78-69-17-8-no187.tbcn.telia.com. [78.69.17.8]) by smtp.gmail.com with ESMTPSA id o192-v6sm2925761lfe.38.2018.04.23.10.44.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 10:44:57 -0700 (PDT) From: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= To: gregkh@linuxfoundation.org Cc: Valentin.Vidic@CARNet.hr, linux@wolf-entwicklungen.de, minhnpq16@gmail.com, viro@zeniv.linux.org.uk, srishtishar@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] staging: pi433: break long lines in pi433_if.c Date: Mon, 23 Apr 2018 19:44:56 +0200 Message-Id: <20180423174456.27309-1-simon@nikanor.nu> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Breaks long lines in pi433_if.c, fixing checkpatch.pl warnings: "WARNING: line over 80 characters" Signed-off-by: Simon Sandström --- drivers/staging/pi433/pi433_if.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 2a05eff88469..b061f77dda41 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -591,13 +591,17 @@ pi433_tx_thread(void *data) */ retval = kfifo_out(&device->tx_fifo, &tx_cfg, 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; } retval = kfifo_out(&device->tx_fifo, &size, 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; } @@ -619,7 +623,11 @@ pi433_tx_thread(void *data) /* add length byte, if requested */ 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 */ if (tx_cfg.enable_address_byte == OPTION_ON) @@ -1047,7 +1055,7 @@ static int setup_gpio(struct pi433_device *device) /* configure irq */ device->irq_num[i] = gpiod_to_irq(device->gpiod[i]); 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]; } retval = request_irq(device->irq_num[i], -- 2.11.0