From patchwork Mon Dec 17 22:06:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Efimochkin X-Patchwork-Id: 10734339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 12B8C13AD for ; Mon, 17 Dec 2018 22:06:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04DC82A1D0 for ; Mon, 17 Dec 2018 22:06:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECFDF2A450; Mon, 17 Dec 2018 22:06:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B0D52A1D0 for ; Mon, 17 Dec 2018 22:06:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbeLQWGR (ORCPT ); Mon, 17 Dec 2018 17:06:17 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45736 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbeLQWGR (ORCPT ); Mon, 17 Dec 2018 17:06:17 -0500 Received: by mail-lf1-f65.google.com with SMTP id b20so10656204lfa.12; Mon, 17 Dec 2018 14:06:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MW5cW5OZpC1DDC/FTy5FPQ5EYY6bZ36cj/A6J4kdUxE=; b=q3IJKOfC36zGz1QP/b2n0vGPXgdfuAqG7CTt8OP8DyZdb3En2f+6xT7feg8kLhb2i0 wSXWHv388pP/TW9FPh4ewAw66tMLxbWzK1pTroCNq+CiX2KJxYKO2NvhoAg2Yy0rK+pD WwNuQ+gQv8bPyD1SkkTBBC9bUHR68zgUAy8qRDlhkKEHmuXVciTR2ep9fBf7bI5zD0h4 uKAeaRbS/hlmGnWJcuatgEvk4WFPsE8SzXMyVerp7FMfBg/Z9pkUcf7mVkbzkre91xnx l4+uVbsQqj1yMZlxqdl2GXzzTx/dp14gmXPUuVgwr5qPcr0SR2z5ofb/y03jLeztV0Oi bszg== 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:in-reply-to :references; bh=MW5cW5OZpC1DDC/FTy5FPQ5EYY6bZ36cj/A6J4kdUxE=; b=B9krOprPp4cuIKOriDeNOV5mefhPuLwbB5nFaeyIu0oYgXbQl/U8iGJ88WJ/f/D8yZ YjnICukxEJHwkmq76s8PqO2oKO3qWpdRlP65p5RGRxZQ7t2Z+a9mCSSXZ5jUYJ/J/m4e lo3eKp3+uvYvT70n73w71B7oxXhCW9pfSInTfgSU7/yzMif4vSGwPVdH8k45RLzP5YMs L0ttM9HWjqo8SYJsJ7oSMzIuivHaPCOhsTWdaHBrzyvJp3lyS5bkobO+gKl87D+7U2jM 2DLW6g7/qmVvqZQlNq+ijU5C8vcIh3kdc2IbifOEdf6rb7g1h19IAfwemFaFcnb94AWq 3RUw== X-Gm-Message-State: AA+aEWbycBaRRIqREh2zu86VlmPPLyj8M0/PQ/wa65s9T/7J6qohcHrT WMlx+WSq/z7Ve4Ajlx52uBQ= X-Google-Smtp-Source: AFSGD/U7hXlJK/c1LaWsx7S1qIXkiPk30v4nQoNzgHtZH6TnAImZKZkVTlU2eQRhnIHtP7kcnYXjxA== X-Received: by 2002:a19:c995:: with SMTP id z143mr7099601lff.79.1545084375077; Mon, 17 Dec 2018 14:06:15 -0800 (PST) Received: from localhost.localdomain (ppp79-139-228-252.pppoe.spdop.ru. [79.139.228.252]) by smtp.gmail.com with ESMTPSA id m13-v6sm2724741ljg.56.2018.12.17.14.06.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 14:06:14 -0800 (PST) From: Sergey Efimochkin X-Google-Original-From: Sergey Efimochkin Cc: dan.carpenter@oracle.com, Sergey Efimochkin , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] staging: iio: adc: ad7280a: fix codestyle in ad7280_event_handler Date: Tue, 18 Dec 2018 01:06:01 +0300 Message-Id: <20181217220602.89406-1-efimochkin.sv@phystech.edu> X-Mailer: git-send-email 2.15.1 (Apple Git-101) In-Reply-To: <20181217074540.GC15451@kadam> References: <20181217074540.GC15451@kadam> To: unlisted-recipients:; (no To-header on input) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP staging: iio: adc: ad7280a: fix codestyle in ad7280_event_handler Signed-off-by: Sergey Efimochkin --- Changes in v2: - changed patch prefix - changed patch description - removed incorrect fixes to codestyle drivers/staging/iio/adc/ad7280a.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 58420dcb406d..f167ee1b2127 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -725,8 +725,7 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) } else { if (((channels[i] >> 11) & 0xFFF) >= st->aux_threshhigh) iio_push_event(indio_dev, - IIO_UNMOD_EVENT_CODE( - IIO_TEMP, + IIO_UNMOD_EVENT_CODE(IIO_TEMP, 0, IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING), @@ -734,8 +733,7 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) else if (((channels[i] >> 11) & 0xFFF) <= st->aux_threshlow) iio_push_event(indio_dev, - IIO_UNMOD_EVENT_CODE( - IIO_TEMP, + IIO_UNMOD_EVENT_CODE(IIO_TEMP, 0, IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),