Received: by 10.223.185.116 with SMTP id b49csp6672948wrg; Thu, 8 Mar 2018 11:13:25 -0800 (PST) X-Google-Smtp-Source: AG47ELuK22Ue2ouB8O1R0KLCAVZZoPcg8/l0qcY7sjWIO/UNPrvplg1vEkjpFo49yxL8qt8CwsFp X-Received: by 10.101.96.212 with SMTP id r20mr21990005pgv.139.1520536405207; Thu, 08 Mar 2018 11:13:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520536405; cv=none; d=google.com; s=arc-20160816; b=r8yQG5Y+2ZT4sfsVveDuBYVSPki3d9fJOMr9kbXKdCILsOSsFqxTCouS8cVlJ6D/gk Kph2omLT0UfeBjiD5y6RD69R04BXaoZVnWlzzcaPk03Yam91knZiPDlkAv2ViSAgboql J6kLt2InOcUGiGjeOjwrdeov1sfXiFr8aATgoUFR/pxJmGO8mB2w1FPvY9GdJTy51fXP MMile/ltg7RrVzYR+zpI5QBVTru1YT/P7AlizFf/0yCTtpN5u64PY2Lrl7Mw4c1Emu/O TXyaB1rrj/MyXlBNbFp0ZUTh09rQ7N/UBaUxJkJrX1/RTRDOzX0fskzJRrK8umbzS1RW KWzA== 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:arc-authentication-results; bh=HzlAoVfdN/sl7ilLjedRuPaXziV8+ddu9zJM8VbJClM=; b=uUSkhtIPZ3yR0jstZPxhX7dDSBtoNUsjAcExJt8KInPa4y/wqH4G9zw7jr9JvCPFRI 2Ulhbu5GQ44JmH7akZKnx4IfTbW/zrEgT0lrrmh4DIzs4W1Bs2f3A8lmzRFZnwNV8xZi IIw29SxC1INUbkFQpEH66HSmYlzcY58IFPRCt1pRPDJBnp5RiLCk/a1VevA8ZBlMWxJi BvVqGuA78byqdPVMv4+udDiPHlvoYcUueEU8I8X+qsTggyZ0qW6Jah4mSa5eQlZuOgbt wLvJDPp8CdASGTTxZ94amD7QIR6AW4OR9x902CfOHnKt0oGUPLc06SRIY9bWez2uGAhf VLEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iTUdyrKO; 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 w9si16149920pfl.193.2018.03.08.11.12.50; Thu, 08 Mar 2018 11:13:25 -0800 (PST) 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=iTUdyrKO; 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 S1755944AbeCHTLY (ORCPT + 99 others); Thu, 8 Mar 2018 14:11:24 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46329 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755489AbeCHTLU (ORCPT ); Thu, 8 Mar 2018 14:11:20 -0500 Received: by mail-pf0-f194.google.com with SMTP id z10so273105pfh.13; Thu, 08 Mar 2018 11:11:20 -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=HzlAoVfdN/sl7ilLjedRuPaXziV8+ddu9zJM8VbJClM=; b=iTUdyrKOIiKCMbjlIi6hLq+7WrKq0wWMnbH4aj6BDcTb1lq+Z5QwWb2dF+OwE2zkD3 phB3P2b+LJRUNG4LP8c47n6vXhQ3Q4v/m0h94115IqLVzbx7/yD8r0kN6qUyTR2yBO+D fppKLFpXjDeRUjqyf1h5z24btUn1FGTjYyVY9MtdYkM4MwSW15p5vmwz554DvRerspGl jIS8u261vSfUhp59ukQysIM/2AQ32/Ja22ft9SAkKtIvokIQ+GmOfuVlbVQdT+J7SRbx FagiCjv+ydQHEg6TckhFmCfOB1fTB5nHud0KBiiek02+hnSX7+FchhADSFZcy/eY2Aj+ xYQA== 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=HzlAoVfdN/sl7ilLjedRuPaXziV8+ddu9zJM8VbJClM=; b=Iv+PDWhCgRQCVsbO4ImVfdTEgQf6HNKcJ1RaQ+iOcAcCF1yWKIvqZPyzypFK1IvNBd TIyErHb9X1puQSdmAfonBKJne8ypURvCL9u7tC881NMIFwvVdgBMU573NqNexf/JSZq9 Dd3ey8erbGTOqgiK1Nak6oXf8i31FiaGEws0NPARvHLhZUrULOtUNw2ibTOUzWuEulCi /CsyTY+rurfcSpggnY+jcT5g8BUp1Yg7f0mJVAS4kVQF8sWghOUhILnQB5EP51oVi8Bc 8VIkuylcnbyLXIp7O7kJm8+OWiSx6yGxwDSNHzmf2MN7x8UIz+X5MrU5X+RE5bXJGWTX dp1Q== X-Gm-Message-State: APf1xPDLrgzkVRhIg36iOTRA8hFzqpkCtEACbDvJseLozKRQVc6rh3FV qcQ3H89jbGqu1wH+hyhWO7k= X-Received: by 10.101.96.142 with SMTP id t14mr21686086pgu.58.1520536280303; Thu, 08 Mar 2018 11:11:20 -0800 (PST) Received: from himanshu-Vostro-3559 ([103.46.193.14]) by smtp.gmail.com with ESMTPSA id b5sm31843910pgc.13.2018.03.08.11.11.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 11:11:19 -0800 (PST) Date: Fri, 9 Mar 2018 00:41:12 +0530 From: Himanshu Jha To: Shreeya Patel Cc: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, daniel.baluta@gmail.com Subject: Re: [PATCH v4] Staging: iio: adis16209: Change some macro names Message-ID: <20180308191111.GA2041@himanshu-Vostro-3559> References: <1520532977-10653-1-git-send-email-shreeya.patel23498@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520532977-10653-1-git-send-email-shreeya.patel23498@gmail.com> 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 On Thu, Mar 08, 2018 at 11:46:17PM +0530, Shreeya Patel wrote: > Make some of the macro names according to the names > given in the datasheet of the adis16209 driver and > have slight indentation in field definitions to make > them clearly different from the register addresses. > > Signed-off-by: Shreeya Patel > --- > > Changes in v4 > -Have slight indentation in field definitions. > > drivers/staging/iio/accel/adis16209.c | 48 +++++++++++++++++------------------ > 1 file changed, 24 insertions(+), 24 deletions(-) > > diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c > index eb5c878..19636e2 100644 > --- a/drivers/staging/iio/accel/adis16209.c > +++ b/drivers/staging/iio/accel/adis16209.c > @@ -68,21 +68,21 @@ > #define ADIS16209_MSC_CTRL_ACTIVE_HIGH BIT(1) > #define ADIS16209_MSC_CTRL_DATA_RDY_DIO2 BIT(0) > > -#define ADIS16209_STAT_REG 0x3C > -#define ADIS16209_STAT_ALARM2 BIT(9) > -#define ADIS16209_STAT_ALARM1 BIT(8) > -#define ADIS16209_STAT_SELFTEST_FAIL_BIT 5 > -#define ADIS16209_STAT_SPI_FAIL_BIT 3 > -#define ADIS16209_STAT_FLASH_UPT_FAIL_BIT 2 > +#define ADIS16209_DIAG_STAT_REG 0x3C > +#define ADIS16209_DIAG_STAT_ALARM2 BIT(9) > +#define ADIS16209_DIAG_STAT_ALARM1 BIT(8) > +#define ADIS16209_DIAG_STAT_SELFTEST_FAIL_BIT 5 > +#define ADIS16209_DIAG_STAT_SPI_FAIL_BIT 3 > +#define ADIS16209_DIAG_STAT_FLASH_UPT_BIT 2 #define ADIS16209_STAT_FLASH_UPT_FAIL_BIT 2 ? It represents flash update fail bit! -- Thanks Himanshu Jha