From patchwork Wed Feb 13 10:19:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Pollak X-Patchwork-Id: 10809561 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 23D8913BF for ; Wed, 13 Feb 2019 10:20:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B6222CC1B for ; Wed, 13 Feb 2019 10:20:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB43A20499; Wed, 13 Feb 2019 10:20:29 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI 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 9EE1C20499 for ; Wed, 13 Feb 2019 10:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388246AbfBMKUE (ORCPT ); Wed, 13 Feb 2019 05:20:04 -0500 Received: from tr-host.de ([138.201.124.202]:54838 "EHLO kolab.tr-host.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728843AbfBMKUE (ORCPT ); Wed, 13 Feb 2019 05:20:04 -0500 Received: from localhost (localhost [127.0.0.1]) by kolab.tr-host.de (Postfix) with ESMTP id 9DAC42B7EA31; Wed, 13 Feb 2019 11:20:02 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from kolab.tr-host.de ([127.0.0.1]) by localhost (kolab.tr-host.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ro_hd5rRLpPg; Wed, 13 Feb 2019 11:20:01 +0100 (CET) Received: from localhost.localdomain (HSI-KBW-046-005-255-234.hsi8.kabel-badenwuerttemberg.de [46.5.255.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: leonard.pollak@tr-host.de) by kolab.tr-host.de (Postfix) with ESMTPSA id 9F2532B7EA2D; Wed, 13 Feb 2019 11:20:01 +0100 (CET) From: Leonard Pollak To: jic23@kernel.org, lars@metafoo.de, pmeerw@pmeerw.net, Michael.hennerich@analog.com Cc: linux-iio@vger.kernel.org, Leonard Pollak Subject: [PATCH] Staging: iio: meter: fixed typo Date: Wed, 13 Feb 2019 11:19:52 +0100 Message-Id: <20190213101952.29816-1-leonardp@tr-host.de> X-Mailer: git-send-email 2.17.1 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 This patch fixes an obvious typo, which will cause erroneously returning the Peak Voltage instead of the Peak Current. Signed-off-by: Leonard Pollak Acked-by: Michael Hennerich --- drivers/staging/iio/meter/ade7854.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c index 029c3bf42d4d..07774c000c5a 100644 --- a/drivers/staging/iio/meter/ade7854.c +++ b/drivers/staging/iio/meter/ade7854.c @@ -269,7 +269,7 @@ static IIO_DEV_ATTR_VPEAK(0644, static IIO_DEV_ATTR_IPEAK(0644, ade7854_read_32bit, ade7854_write_32bit, - ADE7854_VPEAK); + ADE7854_IPEAK); static IIO_DEV_ATTR_APHCAL(0644, ade7854_read_16bit, ade7854_write_16bit,