Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp929326imd; Thu, 1 Nov 2018 07:45:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5cLvZjhFy+htImfPtAwe9N7DRx2ScI9qsmuGo53C087zv+MoPj+nc3CxgyISFM/GkbmUUsW X-Received: by 2002:a17:902:6b88:: with SMTP id p8-v6mr7643376plk.19.1541083522164; Thu, 01 Nov 2018 07:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541083522; cv=none; d=google.com; s=arc-20160816; b=a7E8juzYEaJRzK7/HrrFpj+eFesTvLhg89pAhmBH6Mlp6nidkRZozh6fxJce5Lrork SLgGDL32nlflTfCzNwbKjygii41h6oApovaZphzfbGrK8zNoE6XPkIEz1wyb3x5MJ2CN emlChh7qcuJgL0KmGTpw8AM4gTQYNlAncGzD70si2apgfnFbzNHGUt5lU6/vNSl1sF2Y MbVDuqPEIxMRDlgDRmUzqg+AAGZC23pY64tEBlLEtnvcfVdOhpD9w0Bcf6QS/3uBmBk3 bE1Mjqs74cBWHaXuhRYbB8P0ulZVrzxQdrbLr7dHCvqOz/yxVOfdrwIbnj1TjJnCywS7 5pVQ== 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=50YKaMUXZTtrepHYaXBxTyw7j/sLoX4pes7YMM1sdIA=; b=gzDhNtUBMnsx1XukbHJr9uNTFc1OIePd08mE7XSjHc4arylTkRXpdrAqxoNcAP1Rtb ZWg7cVyLHpH+UhYL6u9ST2//WxqgqHhrkTt4vHU9w6wjkZT/aSNIElhWAlsKYQ1rXS1w W1TVsLn1YrDWTjbWVuhQ538m74cndkjCoxMnDtnkzsfa0/vIfYmav+90+7nCnpKfiH2c f5imGzSL7I/cY+qthJddgCiGWvPNpngVXmQV8G+SbU0kI/e6yfeXdsTvOmR9A+f9M1CW GL0VSjfXntqq/7Iw91Z+rqOS9hfN5Pq23tcQLSgSAD9lVY3uj28YZO+sBdsifxi83Ltb zJ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zqu4lf9L; 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 l64si18220265pge.168.2018.11.01.07.45.07; Thu, 01 Nov 2018 07:45:22 -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=Zqu4lf9L; 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 S1728781AbeKAXrD (ORCPT + 99 others); Thu, 1 Nov 2018 19:47:03 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:45200 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728352AbeKAXrC (ORCPT ); Thu, 1 Nov 2018 19:47:02 -0400 Received: by mail-qt1-f194.google.com with SMTP id l9-v6so21292759qtj.12; Thu, 01 Nov 2018 07:43:46 -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=50YKaMUXZTtrepHYaXBxTyw7j/sLoX4pes7YMM1sdIA=; b=Zqu4lf9LEdI0JPVj8jo6iyJKhAc3Vf1Ky5bh/jyecME978KCvUvdi6l4PsE1BNFwrI i+9HOGB31BBMkKmiAamykmx//rwpewgM4H1L99OfohOKOxhaI74dcvaq5tbfY6U+KccH j2wueHie5ZOmiFvws8m4wFIPmauC+amohBSPban3Y4XpvNqOOw8RnecAgqibx/ING8qX XU0TgfSxdEmJvHx49PyCpimd4PVTRXiuPDLsXl6uoFd2/3UN/4uVZyRiwDEO2M/XR6VW 1nuyLoMZPAjSyMHUKmFGXR8ew+jyBQS86zNI73sYoi+GnIHKpj79UeRWfb1JgnPu9tOC jTnw== 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=50YKaMUXZTtrepHYaXBxTyw7j/sLoX4pes7YMM1sdIA=; b=HJvQIwA+yzBaqNDrJR0sLtFmpH4HM60H/x6fsJphqegRHjp0VxOsklhDQpCDTUA6BG gv/rcZIKO0uKpQpbs9erDgQQE/KPmDTgeIGu8aA7aWaFZsvoA6gkK3RN4CaXR/vMkP8D Xf9VDF4MLAI46yH+NMw3iBuJmHIDV24S00o2hvDMe+HNF7ul7h5tSUWJoS1sh+g3efaK 416D/CnL6m5wA0nAYgSFqz8PgbT78rX2KfH4BBsoXK35mfvNeuWFMz+62I/dmCXu4VVd gkdNWYZekFB0P4FqNu0tA4Tj8k9a7H4hn8+lmRIFPqzWadoMzRFvcYatH9lJBcg2UzeZ OGhw== X-Gm-Message-State: AGRZ1gLjtgr3B9u9JvcRr1UVKbZ6UdvV+OfZNzv+OuRNFZY2rb6vl/YW 6LF7IqDaiTsVaImt2ByjRlo= X-Received: by 2002:a0c:ae76:: with SMTP id z51-v6mr7098225qvc.108.1541083426113; Thu, 01 Nov 2018 07:43:46 -0700 (PDT) Received: from renatolg ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id l123-v6sm5729208qkd.95.2018.11.01.07.43.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 07:43:45 -0700 (PDT) Date: Thu, 1 Nov 2018 11:43:41 -0300 From: Renato Lui Geh To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, giuliano.belinassi@usp.br Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH v3 3/3] staging: iio: ad7780: remove unnecessary stashed voltage value Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes the unnecessary field int_vref_mv in ad7780_state referring to the device's voltage. Signed-off-by: Renato Lui Geh --- Changes in v3: - removed unnecessary int_vref_mv from ad7780_state drivers/staging/iio/adc/ad7780.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c index f2a11e9424cd..f250370efcf7 100644 --- a/drivers/staging/iio/adc/ad7780.c +++ b/drivers/staging/iio/adc/ad7780.c @@ -42,7 +42,6 @@ struct ad7780_state { struct regulator *reg; struct gpio_desc *powerdown_gpio; unsigned int gain; - u16 int_vref_mv; struct ad_sigma_delta sd; }; @@ -190,9 +189,7 @@ static int ad7780_probe(struct spi_device *spi) st->chip_info = &ad7780_chip_info_tbl[spi_get_device_id(spi)->driver_data]; - if (voltage_uv) - st->int_vref_mv = voltage_uv / 1000; - else + if (!voltage_uv) dev_warn(&spi->dev, "Reference voltage unspecified\n"); spi_set_drvdata(spi, indio_dev); -- 2.19.1