Received: by 10.213.65.68 with SMTP id h4csp1059639imn; Fri, 6 Apr 2018 13:52:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48PSlk3Gd8dSnpqRB6t/CSoKcu3rXBXeAVp1UHaTrowUzK4rxzhhKJ8HEipTAn3XHifTsm2 X-Received: by 10.99.112.80 with SMTP id a16mr18574288pgn.371.1523047941536; Fri, 06 Apr 2018 13:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523047941; cv=none; d=google.com; s=arc-20160816; b=g3sFdMIf7VSF7+NZ3Fjzh8TsJgARS0h8H6lX3/O84dmwy5uOewTxe98D1xSfgbMleE 1f2T9EdcefEEbnWAGMthKgd3tnXV4clLLlwN514NNF/wXednhI6A78wwPrxeyutkPOsI UCI5Cq49gmOtBVujaWI64dAxm0b1ofLUC0/9f4QZnVe91nrAFLRF+NN/+O87Fu34mQrZ ddBgEf68yGIhtalP9+GORPh7+gs2U0hG/Id7Z5be7cB8Nx/IMRNEX6OG771DoxBhFdaY kw4hAO8JPCxWwcN0TOalV/o6B0qsVoINBmPLHKOQ3cZM7O4HjKKbqiYL4u8dY54/PAqj raCw== 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=7FVqX7cQRBPCR43/fFyYPFGpaAs35dLNji1UJCZLPD0=; b=XBnssTri07vMGnRq6KYFf4sA/YICYIorJgBlKvdEoFlPP/LXy5v5TZ+S+t/0bwo9a+ e6py3OWau7saxRNeaO7pxjj7yUuO1AfAWpSe3brnYG2dljeoIo3Y6V264mJPvwLRsVsT BjJZo5HYiJbfICvVMWnNLwGNXDzr20wOFFy74ZU7y1YLDqsbohgfX6bKzHk3cP5eDX86 bfwHGyXZD8h4iAEoM7ErWpQUP26Dk6LBf2sga9SId7XuyUK4fK54Bg35EPDm+EqZ+L5y AkQYXlrMYIChUXhTa5ur1uVwEEKdUAon4ag/kVbi39vL0uN+jss93ZhMJ6MokmWVzSZt nkag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=O7CPjI0v; 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 o1si7664117pga.523.2018.04.06.13.51.44; Fri, 06 Apr 2018 13:52:21 -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=O7CPjI0v; 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 S1752479AbeDFUsV (ORCPT + 99 others); Fri, 6 Apr 2018 16:48:21 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:37586 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbeDFUsU (ORCPT ); Fri, 6 Apr 2018 16:48:20 -0400 Received: by mail-lf0-f65.google.com with SMTP id m200-v6so2269214lfm.4 for ; Fri, 06 Apr 2018 13:48:19 -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=7FVqX7cQRBPCR43/fFyYPFGpaAs35dLNji1UJCZLPD0=; b=O7CPjI0voJGKIbU+RSNBE2nyzoZyXM/gYVhfvn/sX+VlcOP76dpGZZQx7nhAmWWwKa xh3KD+BPCoEO8ewJUAwGM4XVCRy1HfeUCKZxha5MsQ4IiWwFbxzOy2ybAIywphrgqVOw RjP6IETzJtIG0n8K3wLDKjyoRIpSbP8lSXo5dGTllzoAkNwwdaCECxZWsvGBlSOq4tlc ChJL4vI3VxDcKKuYDg3uIVhRsLnf7SYrggFcAXHo59FYZuJJuPU5dWfyUKRRMetZMksm /SOUJHR65Xg8aVQHU+Pb7cUwupYvBO9VYYctG/+1/g3wz6qijkv1e1zXmMYwKy/crWNh xb/Q== 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=7FVqX7cQRBPCR43/fFyYPFGpaAs35dLNji1UJCZLPD0=; b=CTW6pFn0r+AwFgKTOkejFLE+YYYU/slsDN4UkOhoSF0nUuqLyAHPwKpRrII7ctWdqo KB5Kq3psAkv383AuwF2U5Nnisj0dfsVY3A9De2HWwINP91EnCGTBD3wkSFYry6/300kI SxXwmNWRk0h6qfD6o7DOFhHwsU0V0RGMWC7uaCWQG1gIcle0FiJTGYZcTwjt+vof1Xsf jQGEyUQv1i+4FO3afn21Gisn9N03235mjdCapk5Fdw7T7XptFH/9op2e1f8VFDo7TmCs eaQiz0iDqoWliQ7tabeUtavbD8sgPWm3e3+dD8cpR3T5YI9PONag63TehKSZMO9uHuub MeaQ== X-Gm-Message-State: ALQs6tDYt1kkUsHguPh1Gz2SmIc+YfP4cg4AtknBlLQ19CR6rHJmBSIh ePMkqBiQK54oFEY8thBWIrCox1z07FamBA== X-Received: by 10.46.152.203 with SMTP id s11mr4010410ljj.92.1523047699203; Fri, 06 Apr 2018 13:48:19 -0700 (PDT) Received: from kappa.nikanor.nu (78-69-170-110-no187.tbcn.telia.com. [78.69.170.110]) by smtp.gmail.com with ESMTPSA id k188-v6sm742622lfg.94.2018.04.06.13.48.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Apr 2018 13:48:18 -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] staging: pi433: break long lines in pi433_if.c Date: Fri, 6 Apr 2018 22:48:17 +0200 Message-Id: <20180406204817.7470-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 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index d1e0ddbc79ce..795cf77e002c 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -593,14 +593,18 @@ 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)); mutex_unlock(&device->tx_fifo_lock); 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)); mutex_unlock(&device->tx_fifo_lock); continue; } @@ -623,7 +627,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) @@ -856,7 +864,8 @@ pi433_write(struct file *filp, const char __user *buf, abort: dev_dbg(device->dev, "write to fifo failed: 0x%x", retval); - kfifo_reset(&device->tx_fifo); // TODO: maybe find a solution, not to discard already stored, valid entries + /* TODO: find a solution to not discard already stored valid entries */ + kfifo_reset(&device->tx_fifo); mutex_unlock(&device->tx_fifo_lock); return -EAGAIN; } @@ -1042,7 +1051,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