From patchwork Fri Feb 16 12:50:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10224665 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 91F49603EE for ; Fri, 16 Feb 2018 12:50:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F4B029439 for ; Fri, 16 Feb 2018 12:50:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7117929485; Fri, 16 Feb 2018 12:50:49 +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 83D4D29439 for ; Fri, 16 Feb 2018 12:50:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967581AbeBPMur (ORCPT ); Fri, 16 Feb 2018 07:50:47 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:45039 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967503AbeBPMuq (ORCPT ); Fri, 16 Feb 2018 07:50:46 -0500 Received: by mail-qk0-f195.google.com with SMTP id l23so3566208qkk.11; Fri, 16 Feb 2018 04:50:46 -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:mime-version:content-disposition :user-agent; bh=TtvMhKBH6vLxxDDqWLtw0dQTcx7UDPJWdUvJMZofZUM=; b=J/4BgRbxDhDylUi9p90/lOTNMLPUIzCEH7+LjCQ6ipGyqZavnGFMl5EyKwGMOsU63g Eb06RRigv/y+VyA4BNYki6M8ypgMAUf3ysTnkMhwC0WGkofCXLe9Fe1LxJd8w0hTdgV2 UWbILduFBg3tnunXwCwJxSeGfH8B6CYu+v0TH7KC5KiviRVga4skr8ZO8opSmvRaDRGs Qqga9eyZQtfKRciFLRdUQ2ptEHi4CVXjS5v2IWxq849AZY9BFuE19fof+3ViixYNNoMa aGZBAjz02QouFqj1s+ST2rCKLNn4V1g5zE3pSRV29xGugOWg54mrTmlSJ2IegZH0J2xR a9Ww== 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:mime-version :content-disposition:user-agent; bh=TtvMhKBH6vLxxDDqWLtw0dQTcx7UDPJWdUvJMZofZUM=; b=QKKec9kMR6s+zkqFBlfqlhBE4as/AUKFVBKfRy01m+rpBAmwJMQnFEW8llkxlprq/K InihC09KoqV13BS6pIG/51a/g3ByjDoUfVHSIqPwA8qGvUW1TBwBnBFAjZDai7UKIJFt gskwie773deCO2DsBACFr7lA4evsBz/vAYalxJvp+W109I+bPXUt8t4diBUWKbfEoVsx ruQkvEkO/5vIruuOOLv7CG7AfHOzIYOcGmnm0gDfumVtYwgMBWYVBd5yfcH/WFNDG1Mm 7lljNK+pelYgZ9fby3205dofiCnV9YtJhzJT0Fx8De9srad3vJ9Vuz3ckEpwNoj/2SJc MmTg== X-Gm-Message-State: APf1xPBk/gXqJQiPUuzwxvFvk5MJAqcPON6fyHjCT2KihhDbJL09yenA jJp0sU0Ar/2jaUlPxzm2FFc= X-Google-Smtp-Source: AH8x2265FcDxOq3GbE3CudVjnz9BkiY0Ly/5A6rlULX6kqe4WRv0RWuxuU5xyVP9wPdN02zT/WJ8LQ== X-Received: by 10.55.24.233 with SMTP id 102mr9612761qky.173.1518785446053; Fri, 16 Feb 2018 04:50:46 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id x1sm12059814qkd.77.2018.02.16.04.50.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Feb 2018 04:50:45 -0800 (PST) Date: Fri, 16 Feb 2018 10:50:41 -0200 From: rodrigosiqueira To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , 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] staging: iio/meter: add name to function definition arguments Message-ID: <20180216125041.qfvg7xtpulc54tk6@smtp.gmail.com> MIME-Version: 1.0 Content-Disposition: inline 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 fixes the checkpatch.pl warning: drivers/staging/iio/meter/ade7854.h:157: WARNING: function definition argument 'struct device *' should also have an identifier name... Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/meter/ade7854.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/iio/meter/ade7854.h b/drivers/staging/iio/meter/ade7854.h index c27247a7891a..2362a4a51ce3 100644 --- a/drivers/staging/iio/meter/ade7854.h +++ b/drivers/staging/iio/meter/ade7854.h @@ -152,20 +152,20 @@ * @rx: receive buffer **/ struct ade7854_state { - struct spi_device *spi; - struct i2c_client *i2c; - int (*read_reg_8)(struct device *, u16, u8 *); - int (*read_reg_16)(struct device *, u16, u16 *); - int (*read_reg_24)(struct device *, u16, u32 *); - int (*read_reg_32)(struct device *, u16, u32 *); - int (*write_reg_8)(struct device *, u16, u8); - int (*write_reg_16)(struct device *, u16, u16); - int (*write_reg_24)(struct device *, u16, u32); - int (*write_reg_32)(struct device *, u16, u32); - int irq; - struct mutex buf_lock; - u8 tx[ADE7854_MAX_TX] ____cacheline_aligned; - u8 rx[ADE7854_MAX_RX]; + struct spi_device *spi; + struct i2c_client *i2c; + int (*read_reg_8)(struct device *dev, u16 reg_address, u8 *val); + int (*read_reg_16)(struct device *dev, u16 reg_address, u16 *val); + int (*read_reg_24)(struct device *dev, u16 reg_address, u32 *val); + int (*read_reg_32)(struct device *dev, u16 reg_address, u32 *val); + int (*write_reg_8)(struct device *dev, u16 reg_address, u8 value); + int (*write_reg_16)(struct device *dev, u16 reg_address, u16 value); + int (*write_reg_24)(struct device *dev, u16 reg_address, u32 value); + int (*write_reg_32)(struct device *dev, u16 reg_address, u32 value); + int irq; + struct mutex buf_lock; + u8 tx[ADE7854_MAX_TX] ____cacheline_aligned; + u8 rx[ADE7854_MAX_RX]; };