Received: by 10.213.65.68 with SMTP id h4csp1303735imn; Wed, 21 Mar 2018 07:33:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELs+NXNijvcd6CYE/qX1F0gVEKeijhr2u/NsW31zRY+C6e0kEoeSXG84l/7Gaf1mqU+oFDkB X-Received: by 2002:a17:902:6085:: with SMTP id s5-v6mr17847170plj.307.1521642837929; Wed, 21 Mar 2018 07:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521642837; cv=none; d=google.com; s=arc-20160816; b=qXBxMi/wX8dompvX8HFcUTj9OU6KsH3W9nZND5NFOjHcY7xqz9z1JFhdMx0UPWJvoO Bp5ijt1/Y8XpypaznYZ5xYlVAoRl/mndg7iGYTRGRAE9L+rFrxXOUXTohUtprRDAZ8G8 28T7nlShvqKTklXbF5qlwk8CrOzCBTB5p2e1Vb5XOxWlEiDy7y/MrK1e5duHmAUHNSL4 HP/Vwi6bfOkE/owo+1ElrQuDB035ngUcq9x0bO1MPBNMVckXjeHGXR9UOl3jHMwj/aUl nOc4rYrZGsrjtQUEMit9NFNegkUb+LYrQqbHcHpn7RoSG8aBTyTaW8r5bMkfQwfugV3A q4gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=GRrlR32K3bxyCd58xeYS4h41QGJg1EO22GkCNU7QXF8=; b=aBjNiOwbwIvhzruQ/n3pYDV/YrY69+hhvlVj9pQJDMgaV0gw/vOxsBCwPUtb2VV1g8 kS7DuLHk/n5IXi017CSq4+EMNmBqMDTD6oSi1dQRY3kbG3A6Mv/hgWZijs8wgV+ZF/6A ZYcQWMO5eV7fqN38Exd8Qncr6BZQ8hGK77aKUZvkxbLuF4I3nlq1B8NRDd81ZS0Ogz3a 0E10RRk3EGhfb0408yBD3SwkMt9iIRf8tJuX+rNkDTnfyE/GNB8GnAmvDr8cITHX1o+L gb7myzuIuQD2eXDwMhVc47U4psgYcoTU6RAm7a71lPkPJ0tfgstM4ArXhi0U4Oir3RGD VwpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=x5ewhRUX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si2825127pgc.818.2018.03.21.07.33.43; Wed, 21 Mar 2018 07:33:57 -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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=x5ewhRUX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752415AbeCUOaY (ORCPT + 99 others); Wed, 21 Mar 2018 10:30:24 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:47095 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752347AbeCUOaQ (ORCPT ); Wed, 21 Mar 2018 10:30:16 -0400 Received: by mail-qt0-f193.google.com with SMTP id h4so5427097qtn.13 for ; Wed, 21 Mar 2018 07:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=GRrlR32K3bxyCd58xeYS4h41QGJg1EO22GkCNU7QXF8=; b=x5ewhRUXxJ8Ze3dOF39vow5Tso8yzmwjIA8IsRBO4dWeCJH2qO5JTMyjPq3F81OTJi 4JEX5ihw+EZaWINx5C/4DVwP1PLQ+tcTmbj2XuMt5IWHQXXU+EYpZsNl95ncIAZJMfiO 2N3fDsKKqwGkiVzA0riru1xKSBdFCcVl6zJfsbI/b58kWe8pe44tePMf1y6Q1YleuZxX YkhtxokqD4K3mbcrWTHKszUetecB/ll8+HAJrETOnX76Et58d3TlQex32YN+88D+yE7O ihvui9eTne/wJIT+wDDp0dC6sl9n+Mu9exvDPKCxXUGGIzxqjzEt72/xUlFLJ0SphMUM VMRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GRrlR32K3bxyCd58xeYS4h41QGJg1EO22GkCNU7QXF8=; b=OeKauIcpCXZvn237OYbnl5qf6EHlx9i/CFTUV8QSeemhoTlimrYexGwN/T/MjHba6A WoO1LWDmYUs29bF/J+7SkOGK6wcHyETgFcvKl7lif8S1U7zoAkd7wYYeTx3cWW1u6Gpn awT5tMEUq60Usv4xqEyGMOIf6Jfmo1DYSpjnOIpac72QaYFYFru3qocnxj79tUDXVcSJ 8IFm1UOmY8pBled90g85Iz8owmvZowy01kdH1bU5+nqyM/wwAuAfFvPn4QCbvC8Sz+2V TFwyDZTW8OgB8u72ANNmN8egC2DzHz/TyOYifBXCuhRjhQQyPdo0i/j84pUJExuuJyXV CvgA== X-Gm-Message-State: AElRT7GmlAr0vg7XkYM3VIuGgcv1IjgyPmoabNrFt3KjfT1laLpxYe+3 rVwvzHsuu7guRRFh5PgiSCAQmQ== X-Received: by 10.200.0.73 with SMTP id i9mr30589748qtg.237.1521642615388; Wed, 21 Mar 2018 07:30:15 -0700 (PDT) Received: from localhost.localdomain ([190.210.56.45]) by smtp.gmail.com with ESMTPSA id g14sm3118592qtk.71.2018.03.21.07.30.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Mar 2018 07:30:14 -0700 (PDT) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, hernan@vanguardiasur.com.ar Subject: [PATCH 05/11] staging: iio: ad7746: Remove unused defines Date: Wed, 21 Mar 2018 11:28:53 -0300 Message-Id: <1521642539-4845-6-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: HernĂ¡n Gonzalez --- drivers/staging/iio/cdc/ad7746.c | 16 ---------------- drivers/staging/iio/cdc/ad7746.h | 5 ----- 2 files changed, 21 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 57623db..cba8cd1 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -25,7 +25,6 @@ * AD7746 Register Definition */ -#define AD7746_REG_STATUS 0 #define AD7746_REG_CAP_DATA_HIGH 1 #define AD7746_REG_VT_DATA_HIGH 4 #define AD7746_REG_CAP_SETUP 7 @@ -38,17 +37,10 @@ #define AD7746_REG_CAP_GAINH 15 #define AD7746_REG_VOLT_GAINH 17 -/* Status Register Bit Designations (AD7746_REG_STATUS) */ -#define AD7746_STATUS_EXCERR BIT(3) -#define AD7746_STATUS_RDY BIT(2) -#define AD7746_STATUS_RDYVT BIT(1) -#define AD7746_STATUS_RDYCAP BIT(0) - /* Capacitive Channel Setup Register Bit Designations (AD7746_REG_CAP_SETUP) */ #define AD7746_CAPSETUP_CAPEN BIT(7) #define AD7746_CAPSETUP_CIN2 BIT(6) /* AD7746 only */ #define AD7746_CAPSETUP_CAPDIFF BIT(5) -#define AD7746_CAPSETUP_CACHOP BIT(0) /* Voltage/Temperature Setup Register Bit Designations (AD7746_REG_VT_SETUP) */ #define AD7746_VTSETUP_VTEN (1 << 7) @@ -56,13 +48,8 @@ #define AD7746_VTSETUP_VTMD_EXT_TEMP (1 << 5) #define AD7746_VTSETUP_VTMD_VDD_MON (2 << 5) #define AD7746_VTSETUP_VTMD_EXT_VIN (3 << 5) -#define AD7746_VTSETUP_EXTREF BIT(4) -#define AD7746_VTSETUP_VTSHORT BIT(1) -#define AD7746_VTSETUP_VTCHOP BIT(0) /* Excitation Setup Register Bit Designations (AD7746_REG_EXC_SETUP) */ -#define AD7746_EXCSETUP_CLKCTRL BIT(7) -#define AD7746_EXCSETUP_EXCON BIT(6) #define AD7746_EXCSETUP_EXCB BIT(5) #define AD7746_EXCSETUP_NEXCB BIT(4) #define AD7746_EXCSETUP_EXCA BIT(3) @@ -74,10 +61,7 @@ #define AD7746_CONF_CAPFS_SHIFT 3 #define AD7746_CONF_VTFS_MASK GENMASK(7, 6) #define AD7746_CONF_CAPFS_MASK GENMASK(5, 3) -#define AD7746_CONF_MODE_IDLE (0 << 0) -#define AD7746_CONF_MODE_CONT_CONV (1 << 0) #define AD7746_CONF_MODE_SINGLE_CONV (2 << 0) -#define AD7746_CONF_MODE_PWRDN (3 << 0) #define AD7746_CONF_MODE_OFFS_CAL (5 << 0) #define AD7746_CONF_MODE_GAIN_CAL (6 << 0) diff --git a/drivers/staging/iio/cdc/ad7746.h b/drivers/staging/iio/cdc/ad7746.h index ea8572d..2fbcee8 100644 --- a/drivers/staging/iio/cdc/ad7746.h +++ b/drivers/staging/iio/cdc/ad7746.h @@ -13,11 +13,6 @@ * TODO: struct ad7746_platform_data needs to go into include/linux/iio */ -#define AD7466_EXCLVL_0 0 /* +-VDD/8 */ -#define AD7466_EXCLVL_1 1 /* +-VDD/4 */ -#define AD7466_EXCLVL_2 2 /* +-VDD * 3/8 */ -#define AD7466_EXCLVL_3 3 /* +-VDD/2 */ - struct ad7746_platform_data { unsigned char exclvl; /*Excitation Voltage Level */ bool exca_en; /* enables EXCA pin as the excitation output */ -- 2.7.4