Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1794858img; Sat, 23 Mar 2019 12:23:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvlHfW3nFmfZmh6vxOApcXF5KfdfHGgv9pre2hNqJrHyKJYXSWTXxnl8+nWRrmc74JrfSh X-Received: by 2002:a65:6108:: with SMTP id z8mr1464845pgu.106.1553369011760; Sat, 23 Mar 2019 12:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553369011; cv=none; d=google.com; s=arc-20160816; b=P9TqE+QttmZGD5h2BiNy9QCp70ktrkLuCH4H53vUBtqwsPyJxHXnIBZBnG61szqQ6C ls9XMHBkTMa5cq/aqeeYuYnP+tBKHehx1EiOSHketbRfVZR+SW5p9+C1cVyYZKra5FsM 8lGIstM7JMIMISla/+koVmyYh22p9rqjB0BDNVUrRa4w8HAf1DTwx17zVQnILEzfZjxu SlSasnzWLRSPd7HlYVcRQsTMX0ZYjS3M1ff7MB+g9vDjq3iX46zFpttQIWhm/TsKXSPC 5EfBWuLffAjPEbTKNu6XzcKM/vnDL1AenNBRZxnjF87P+ZHZcGbiSdDWnrSKyQHM/Ztp t33w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sPOAJ9vL8DU/xUjWj8EP8edXqBAmU66fIW2knqs1718=; b=O6AYYG35OpEeklNSygHzE7gmsFjCsGNWdCHExaQJcYmCGcr04q6otave0Z4e2zvufX Mo42K5NIIB+shnDLqA491p2VvQVGa6nUlY+jTHA6FLjVNwTtrYGR5+xmgtZ0vn62+Gxw 1jtmc/ohJrX6ntgoHehkIfvBnrU4HjKST8g+lM7g6Eg/tjLnqgnHMiCaqfmr1ibaBNNJ 2gKLC+Yo40y2flJHRxBoikBJcfbDqxDpsflFszwhXiBo+u1gZiHTjWjX3/X2zWX1tYJH GwfFgqQTgcuGExuQMGqyTjIT4FoqtNtGFiZOsTRMVZPOExJGb6I46jQPkBdxG0rvojDK RlMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V+lbCYnA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si9346244pga.497.2019.03.23.12.23.16; Sat, 23 Mar 2019 12:23:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V+lbCYnA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbfCWTVz (ORCPT + 99 others); Sat, 23 Mar 2019 15:21:55 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41050 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727992AbfCWTVw (ORCPT ); Sat, 23 Mar 2019 15:21:52 -0400 Received: by mail-wr1-f65.google.com with SMTP id p1so5789347wrs.8; Sat, 23 Mar 2019 12:21:51 -0700 (PDT) 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=sPOAJ9vL8DU/xUjWj8EP8edXqBAmU66fIW2knqs1718=; b=V+lbCYnAwY/h04/Zvl1drG8lfzpELzkN2oT/tMqAANoavCxze8psTI+8vCMxxobpIA SyidnLDjayUg50UOsQr68MsD4BKDQJJ4M0G5w7aU016oGUDT0ijxcRuxwIb8NKIhGbdh 8e1RhE7lIYdwP04apMHzhLukDcnX6bHjfWFE6Th1hZWlXeCv5ftXHgZleazvPz6pmyTm o6XlrPvPdVxuNQQOo18cx9XX3LqKBpt9gDTP4ISyGHbGORqVcPbZnQDY3lOLT8oao4eJ TH79Zxw7jiF5I5j/oSaZPBfHgCu639gUZxv6z7RUpSRz/oKfFGqsgtoHDddBIzQbLgqn UNQw== 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=sPOAJ9vL8DU/xUjWj8EP8edXqBAmU66fIW2knqs1718=; b=AySx5mhYebwgxsC3vVFlu6PhJ9t6rmPXy4p5lSPHWKX2gbT6HweDE+zkgKZEOtrEtd MKPdmzrlLE4HXDphAZTAQVg0sMXQU4o5mdSddGXhTZdw/r2vY87Osi6pZgaijdG778Pz tWWC4lNj6ZbHL2T6fD+dRIfpOr0CY8ywSQ8V43Jxlc9M9maz3SIC2xktOjmJBqnwCeJh KG7MoxirVMXUrLOefg0Gqcl8QwdfDBkVk37CBnLJ1AMV02fmvjIioQ0ZekprHuChhn5y aG8pP2OIJtDUxk/KPun4lBHd6CiBAL0/O0NmTDO+jPuvutXLDBQoDxyqASK2FCFVdJcD Kywg== X-Gm-Message-State: APjAAAX/eNcPoBacL/HECwexOexNninOcgSp88s2IUOL6uNLOgR/rZSO kCWBOEbolaJWKAcnoU3vDPk= X-Received: by 2002:a05:6000:12c8:: with SMTP id l8mr10116627wrx.80.1553368911097; Sat, 23 Mar 2019 12:21:51 -0700 (PDT) Received: from peano ([87.19.116.42]) by smtp.gmail.com with ESMTPSA id h2sm16665789wro.11.2019.03.23.12.21.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 12:21:50 -0700 (PDT) Date: Sat, 23 Mar 2019 20:21:49 +0100 From: Cristian Sicilia To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: 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 5/5] staging: iio: adc: Remove CamelCase notation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix CamelCase naming. Signed-off-by: Cristian Sicilia --- drivers/staging/iio/adc/ad7280a.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 5d848aa..c02454c 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -917,8 +917,8 @@ static int ad7280_probe(struct spi_device *spi) const struct ad7280_platform_data *pdata = dev_get_platdata(&spi->dev); struct ad7280_state *st; int ret; - const unsigned short tACQ_ns[4] = {465, 1010, 1460, 1890}; - const unsigned short nAVG[4] = {1, 2, 4, 8}; + const unsigned short t_acq_ns[4] = {465, 1010, 1460, 1890}; + const unsigned short n_avg[4] = {1, 2, 4, 8}; struct iio_dev *indio_dev; indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); @@ -966,10 +966,9 @@ static int ad7280_probe(struct spi_device *spi) */ st->readback_delay_us = - ((tACQ_ns[pdata->acquisition_time & 0x3] + 695) * - (AD7280A_NUM_CH * nAVG[pdata->conversion_averaging & 0x3])) - - tACQ_ns[pdata->acquisition_time & 0x3] + - st->slave_num * 250; + ((t_acq_ns[pdata->acquisition_time & 0x3] + 695) * + (AD7280A_NUM_CH * n_avg[pdata->conversion_averaging & 0x3])) - + t_acq_ns[pdata->acquisition_time & 0x3] + st->slave_num * 250; /* Convert to usecs */ st->readback_delay_us = DIV_ROUND_UP(st->readback_delay_us, 1000); -- 2.7.4