From patchwork Tue Mar 6 12:25:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10261545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A829A6055D for ; Tue, 6 Mar 2018 12:25:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9612B28EF9 for ; Tue, 6 Mar 2018 12:25:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 881FA28F19; Tue, 6 Mar 2018 12:25:59 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 3121A28EF9 for ; Tue, 6 Mar 2018 12:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753497AbeCFMZ5 (ORCPT ); Tue, 6 Mar 2018 07:25:57 -0500 Received: from mail-vk0-f67.google.com ([209.85.213.67]:34586 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753552AbeCFMZz (ORCPT ); Tue, 6 Mar 2018 07:25:55 -0500 Received: by mail-vk0-f67.google.com with SMTP id z190so12168253vkg.1; Tue, 06 Mar 2018 04:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EC2CGiX5kGAOg3waThd6H4gfx0L1MMNOEJjINQ3KhJc=; b=sc+sEhB4+YqYqMrdod12swVuKEC+h+yJyiCYyg81CmXS2F890AE4vIkE/ABKtVGTd4 tGW9fAKPbVWm4agyDQ1DnFHNqoAtHRVU2UI3qiwGIK3awrEnHVK7mDl16cWBpJXWqAoS KyoZe8z2Wr8AojILk5rdMnHkgyBU/NuegY6WdBvtjH9/Fv+gb6gG6G/8RnpgQZZREwnu tTBLmLPTKB9w2qjeSjzuLA7NOIC1X64TmLYfUL7atEfXrQnzsz8L6w+sfI1PeAa5E2nv RhJn1IKLprzpO8PfuVqrk7uH2X7SZbw7WzncmdVhYiXmAYqFYhjKuqWJFjdKGCUw0S5W n1Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EC2CGiX5kGAOg3waThd6H4gfx0L1MMNOEJjINQ3KhJc=; b=gOKj+mok/O7RMnM3m4I6oy7Rm8qNI3ZKZeU1T2JL0LJH/TzIdk/tS2g+Xew1Ipyft9 Y5YE+w/8uP+Pgj3xoPkH1X21DHH3YB5DIRjmK/EmzNkEu0/yOdkd8GWDKgEli9sn+6cg pQuiK66zi1HE+rCecaP04ffA9mFTkqPnZBBrB0MqQ0PGUxKWx2+hVXWbljfwwOYmdazS BQiTSeh/GNSRybVBo1cwkZElHhPWDfRmYBCh9oBGfvoxPXQrYUnovlWZShVqNk+oftkP xK5iXgX0l7V8k6tw8umINIfweI9YlCvUKe0TrIscBicoZx/LoN7W/89EinWQfHzaYWf7 NfQg== X-Gm-Message-State: APf1xPBiaI7xHs2HOO9Py1QWXULBMNkzhL7PmA7LDkwthiYtuPmPBp8v xjyVSRRcKeiBr9Ew7bFNlhQ= X-Google-Smtp-Source: AG47ELtclernXJMv7XN43qvwUYp1oTl6wvL7Qu5YMshkDPwh3DyXro0LhvEFgJO/6YoPkYIKDrQlwg== X-Received: by 10.31.50.13 with SMTP id y13mr12922371vky.85.1520339154244; Tue, 06 Mar 2018 04:25:54 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id y50sm7786710uay.19.2018.03.06.04.25.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Mar 2018 04:25:53 -0800 (PST) Date: Tue, 6 Mar 2018 09:25:50 -0300 From: Rodrigo Siqueira To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: daniel.baluta@nxp.com, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] staging:iio:meter: Remove unused macro IIO_DEV_ATTR_CH_OFF Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 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 removes the macro IIO_DEV_ATTR_CH_OFF. The macro IIO_DEV_ATTR_CH_OFF is not required, due to the replace of it by the direct use of IIO_DEVICE_ATTR in files staging/iio/meter/ade7759.c and staging/iio/meter/ade7753.c. Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/meter/meter.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/iio/meter/meter.h b/drivers/staging/iio/meter/meter.h index edf26302fa57..5ed59bf30a25 100644 --- a/drivers/staging/iio/meter/meter.h +++ b/drivers/staging/iio/meter/meter.h @@ -348,9 +348,6 @@ #define IIO_DEV_ATTR_VPERIOD(_mode, _show, _store, _addr) \ IIO_DEVICE_ATTR(vperiod, _mode, _show, _store, _addr) -#define IIO_DEV_ATTR_CH_OFF(_num, _mode, _show, _store, _addr) \ - IIO_DEVICE_ATTR(choff_##_num, _mode, _show, _store, _addr) - /* active energy register, AENERGY, is more than half full */ #define IIO_EVENT_ATTR_AENERGY_HALF_FULL(_evlist, _show, _store, _mask) \ IIO_EVENT_ATTR_SH(aenergy_half_full, _evlist, _show, _store, _mask)