Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp927204imd; Thu, 1 Nov 2018 07:43:10 -0700 (PDT) X-Google-Smtp-Source: AJdET5cNVpbyMwBX2VnLBGSFEsfK1hCllsHgXuTUZu0J9tdAgC2GapIm0V84DI6iJmcJodkhLhSN X-Received: by 2002:a17:902:82ca:: with SMTP id u10-v6mr7625511plz.146.1541083390196; Thu, 01 Nov 2018 07:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541083390; cv=none; d=google.com; s=arc-20160816; b=OXGZogyzzK0f5P6Ir6l7gsufk+WWIzCpM9eTNKbFqddL9ubU6uYxlR/nTMxppQvTBH Na+kT9e8n7sbMzqRqilqcHcIs+XxeaHGU45kFJHIAVbsziBHW0xCybMIQxmJaMoK4X+t 5ebMzlPrkLownOCZwDK6TxJdwhsGwDyVBzOd4h5q7IUgYvLTxqN/5du2Lo1X+gLjXhPd Fak7M1skMrw9V5JbeUWHOYjt6yyr7IRvSsC8oXu+xsjvNUF2tSKdXSogiNfHJhP7swL6 3JNFkeM2NdofemC5xkhlwMNf/bxVkNHjaa03UN6NQgDKW/bl2gwW6P8HpL9Ov6bI8xUk NrTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=lsikBII0ToU9QdxVdDi2czjvfabaJyqmLh7r7+VP4rA=; b=aHN8cU5aBcla6vS5NSyolX89fZywp/jPNi5xUrnq4mXB60j/7E6ybaXI/pmYdbOs/e DCSFK0erS/gOLHrUur4HgbQxnxP8dF/E30W+cW4VKKYyf2oVUa31HL0f5PlsXKvIEBrW striOYAnqiYH1rds9cdLTVtWFsYUhLvOLQnh2yJg7OgV+AOk5Ck4G653duCrTA0bi0Bu kEf0N4NYySRS6/cRyBISC5JG8AkxuYudsE6X4kNjTA+LW4CurZiJHr6rAtQKBqKke+R8 DkcdNwpG5ln1hCaEo81mJvtHm3iY6M2OZm/5aIsI1cXYpMEov34RYYxrMnSaolA0eklp n0UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SAtcnP95; 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 i25-v6si30297266pgi.426.2018.11.01.07.42.55; Thu, 01 Nov 2018 07:43:10 -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=SAtcnP95; 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 S1728776AbeKAXph (ORCPT + 99 others); Thu, 1 Nov 2018 19:45:37 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:34877 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728181AbeKAXph (ORCPT ); Thu, 1 Nov 2018 19:45:37 -0400 Received: by mail-qk1-f195.google.com with SMTP id v68-v6so12398184qka.2; Thu, 01 Nov 2018 07:42:21 -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:mime-version:content-disposition :user-agent; bh=lsikBII0ToU9QdxVdDi2czjvfabaJyqmLh7r7+VP4rA=; b=SAtcnP9532ladwbhFZvL3+Xn1kDHpqqC4XhkZwH/nsAbJ4nJ/L8x8EglT92JVhzWVq oVq2No5TxHNHHaoA0DEuAilVVWrinQDJ+HKACpsEhBbDfmlvFMNSUMZyJkDhHSAmX5fy dxxuEPwX+u4pc8qmhhwLY1mGGeVVECl69yLbEGcxjOSXvvFVEZmx8sxNalQQkgnqTaNz IjB0tRDj3b7pVC9sFV583KkxJXD9/BML/RysnSkbEAn/aXdutAia1OeuSH51EXB/R4/9 gzKjnX4uuNQ3QmzQMYWGZUYu0ZO3vPQQKZkVd4Rfg4C4cHLaoqMYKXPRw31ZMDr9+RdA SKrA== 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=lsikBII0ToU9QdxVdDi2czjvfabaJyqmLh7r7+VP4rA=; b=srcVe9XxZAh6Wmav9AwZd4Fv+aDqfXujwze5x5ixGKG7QE0O6+/UVNPPdU6DyGuFDa Bb3Zkcn9wotecnE8dGvI4fs1a78582BeUW2TFjJtAtgDcFjUauHyfX8Le+YhJzYsfhmd AnCswBdwRySi/dg1Rni/eiUsMK0WadZOcwzcReP97ez3UubolckrGgDFT2gDekqd8q9V xZSd1paYRznJlybRxTIiHrRaOKj/ZexAoPi8ESAxFANEIr+xdBfp1Szwym2xyhEYL450 lPbOwMQaLt4tl1VJ3nVGioNiXDA8mvzZDi5np2O9vZr/9aAAps9A7d/B5s7SEO9rh1dQ Rfkg== X-Gm-Message-State: AGRZ1gJCdqnGdONHOn8WJ2IvPQms9L2m5lOvZOGcVl7VIU54x+GYo2gC xaJJ/zYpX9vobTma+QpCi60= X-Received: by 2002:a37:3b04:: with SMTP id i4mr6997685qka.110.1541083341216; Thu, 01 Nov 2018 07:42:21 -0700 (PDT) Received: from renatolg ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id e81sm21311282qkh.55.2018.11.01.07.42.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 07:42:20 -0700 (PDT) Date: Thu, 1 Nov 2018 11:42:16 -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 0/3] staging: iio: ad7780: correct driver read Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this series is to correct two issues in the driver's raw read function and remove unnecessary struct fields. Changelog: *v2 - separated original patch into two patches (https://marc.info/?l=linux-iio&m=154047435605492) *v3 - reordered patches so that fixes go first - removed unnecessary initialization - removed unnecessary voltage field variable - dropped reading voltage on probe - returns -EINVAL error on null voltage Renato Lui Geh (3): staging: iio: ad7780: fix offset read value staging: iio: ad7780: update voltage on read staging: iio: ad7780: remove unnecessary stashed voltage value drivers/staging/iio/adc/ad7780.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.19.1