Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp832956imd; Fri, 26 Oct 2018 19:01:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5dxRE46UumhmNkmuDpZUiXJhLK/dlUwrgbSdVHLCK4l4VTAxRkSXIXMVqKD37ey99HQIyMy X-Received: by 2002:a65:6249:: with SMTP id q9-v6mr5653889pgv.392.1540605696649; Fri, 26 Oct 2018 19:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540605696; cv=none; d=google.com; s=arc-20160816; b=0MgJzXhJ44/WNBlvRJtw2+t85owGRgMFv4QvSNpLmjPgdOSI93EW64oIGix2cTRSVB ccaNocJpIOoE5GfzqLMqcebZcRzQyeXJ5ka6wcaFNSSTzn7ycLZ7ttPw7EIyPsEKHTOL yQ33jt/cUM2+3GuhDiALe2gE2/hzkkM0oV0/Ltl2sLQYfxaVGR3TFyqiovGC9PgSlUXU Oq4N3NL76blWszkWthNhac5360Fgq4ow4h+wMRfTIj6ijnkoLsuAoWXKuB/C3KHESMlw gOC98YIya8x6mmvvvVu9MTGeVBMAMYcNG0H0Tq+sqbSGzMXV8ALOQVoNLA6VQFT2PPov /xfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=BYO8gJ0DL9t4HFysoPzX3BkJADnAtRGENw1K+KI3Mew=; b=HNjMGioKW3wmE2kezUh5qJh+vMlj4eSYah5+7pmMdPbgCkN07pgb9kebQXKuRzkxgR QifLm6ahNtZMd/47oteiyIjDyU5rzyTVolavfl+zGYmdCvm+KVPZbANBx4gEunlvv8ix BTV6a553L7QixFq5ajEi4T+8XkvwvaijOCQGfTaHkgdrMEwMIJg4hL4iKTH6YFdBF39s ZtBMmGDq54vJpkgSaui8sG9JN1lpbNwGapECYAzs53muiDxeRi3V5j5CLV0Kp3PsuRSm lhQuPlMgTBBKTBZk6thw4cPz43K5w1jwkvHjKK17CYSgMAbZw1rKN7lmz2dIuXEdGkj3 25Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=ufTZDwng; 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=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5-v6si12100093plp.29.2018.10.26.19.01.09; Fri, 26 Oct 2018 19:01:36 -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=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=ufTZDwng; 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=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbeJ0Kj4 (ORCPT + 99 others); Sat, 27 Oct 2018 06:39:56 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:46736 "EHLO mail-qt1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbeJ0Kjz (ORCPT ); Sat, 27 Oct 2018 06:39:55 -0400 Received: by mail-qt1-f179.google.com with SMTP id c16-v6so3381656qtj.13 for ; Fri, 26 Oct 2018 19:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=BYO8gJ0DL9t4HFysoPzX3BkJADnAtRGENw1K+KI3Mew=; b=ufTZDwng1mOiEmFuenTqSU3wlgkyJbP/dMgk9BuIPZlUQ8ZnmKlZHZFN2DppCeZhGJ 0sq2lr3cyVHs5EkoVEmSppLa31+wWW6Hjnhl93d3I8AIWOMLfY39yz4lxJX9cfE3cx5y OlPvQ7lc7QVPSNAk2DY8QHd3pL4IaIxeINGl389BXmPLvCJlUc7BLShhqGmVSYkZzQCc 2/gOBBbbUh/VWjCqBAJxjMjCw9mIatrwG8yIh6ukDnhuqc8x1JXKNB17svDDTS8eXc8H uAznZPtqMgxN6EHLKrTWGP61z4HOEA/AMORIaFNLppiKjaFry5WQqAp2Mkg8dmRk9o0U DQ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BYO8gJ0DL9t4HFysoPzX3BkJADnAtRGENw1K+KI3Mew=; b=TM2T1xc9yuaOT63qM1lQfQ3pX9sCoV53f4V6ainPYUnDsh8vLhQ6Uc9MJTupPr2jdz QJbZS23wYeTsMm+oOqa1tcYfpdSkfvvdDjQCRJlt11a5I3cob+2J32dMz9BmxJV2kc3P J0meMdFbUJgh9qEO39fho6Xl5BQRF4/NxE8zuDX0IL1A0CLQK+4+z6UNC1sxIiLahp3w pGp6SgfiR+tAUtq0kzr1XXrODVu8XuDnMHpDhxHedssL1ZrdGV3kvsYxYw44DQlbX09V Mu4QyRtutU92E7em8aMeBUsHd+DYxowhPQ0xxqWBu03UV4JgY/KYYLCeTUZMQBVinXgX Nd9Q== X-Gm-Message-State: AGRZ1gIQmkyGzQP1BTE/lARibvR+zuP3cyXCYeqDp3kvLXLNvkpZ7P10 nRItKifTRdz9sILHwPq1yV65/A== X-Received: by 2002:ac8:1701:: with SMTP id w1-v6mr5312112qtj.76.1540605634971; Fri, 26 Oct 2018 19:00:34 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id h67-v6sm8499777qkf.32.2018.10.26.19.00.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 19:00:34 -0700 (PDT) From: Matheus Tavares To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH v2 0/6] staging:iio:ad2s90: Add scale info and improve error handling Date: Fri, 26 Oct 2018 22:59:59 -0300 Message-Id: <20181027020005.3140-1-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds scale info to ad2s90's single channel, improve error handling in it's functions and fix a possible race condition issue. The goal with this patch set is to address the points discussed in the mailing list in an effort to move ad2s90.c out of staging. Changes in v2: - Added my S-o-B in patch 5. Matheus Tavares (5): staging:iio:ad2s90: Make read_raw return spi_read's error code staging:iio:ad2s90: Make probe handle spi_setup failure staging:iio:ad2s90: Remove always overwritten assignment staging:iio:ad2s90: Move device registration to the end of probe staging:iio:ad2s90: Check channel type at read_raw Victor Colombo (1): staging:iio:ad2s90: Add IIO_CHAN_INFO_SCALE to channel spec and read_raw drivers/staging/iio/resolver/ad2s90.c | 55 ++++++++++++++++++--------- 1 file changed, 37 insertions(+), 18 deletions(-) -- 2.18.0