Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05E26C282C2 for ; Wed, 13 Feb 2019 10:20:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CEF892190A 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 This patch fixes an obvious typo, which will cause erroneously returning the Peak Voltage instead of the Peak Current. Signed-off-by: Leonard Pollak --- 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, -- 2.17.1