Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp165745ima; Thu, 25 Oct 2018 17:46:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5fuK+TjMp8JErpsEBBw7Qy7mMfXfs/6xDApI+W/1O7U8MsCq4Bc0dWLfUbLJPdamhLVoFKx X-Received: by 2002:a63:f710:: with SMTP id x16mr1358265pgh.322.1540514767459; Thu, 25 Oct 2018 17:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540514767; cv=none; d=google.com; s=arc-20160816; b=K5UzgUoJ02M6DenD9oiuaQt7WH4jaZYKP2hP/GAYnG0r+6pvW3JapMSFk9ybIcMCDT 1r+aTfcYBm+QqJO/Kte04YosZ4K5nhiVQXHCf4WdsB84SnBrmEwActd5UNfEF+srsIEU 72MbG9Shin5iQCRxMVqc5LBUsTV03hL9Ztn01T0nDB/IOJCghL0g5Dq8wQ2AHQ4Lowgo smFv7a8Yn6DXHBksd0J0/etWzShXMRWVMk5dtafcu3KIih260PM4NLrIZVn0GlL8r3ut Q0lBF7XMBxpInu4+f+MN2Cd+A2pEq4UJC87OZAKS8ysC60e7WC86tTL616kYjX2Paa7D WPLA== 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=zTiUeMyWQxrOl0Lg+fdlflDp1Wi1dfv/1GT9s6EKWVM=; b=XkMSXUER2eyVJcnpcz/GmDtMmvqSnmThojWoLuQgEvMk5MfqivJny5qNQSC22AzpIl YNybCKkgHW//9rlNG+25Ya3+tQL4/jsYWLNgMMVu/KsFZsFgHFq1DL3cUhzbL3YeFVsY c+k9GFB6SCglGhW+MtNO3RUiugyKUJxYsc2qLLe5jux4Ilbptc0l7ujzm2Tf52Dy3kwi MYiJU7RNIIuwhJTa3j0NtfN8um2XbYVv+rauNUM19OD6P91GboE10Xtk5sWFBUfNbEYO XPdnBb6TIeYi7RZ1NkO3pwZBhDACoHhm4kFdoIIsTb4WErf0lO/mQuLu/GlbMmdlBTZt WrIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=o2IPC9I8; 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 z5-v6si9815080pgi.172.2018.10.25.17.45.51; Thu, 25 Oct 2018 17:46:07 -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=o2IPC9I8; 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 S1726113AbeJZJUP (ORCPT + 99 others); Fri, 26 Oct 2018 05:20:15 -0400 Received: from mail-qt1-f181.google.com ([209.85.160.181]:40013 "EHLO mail-qt1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeJZJUP (ORCPT ); Fri, 26 Oct 2018 05:20:15 -0400 Received: by mail-qt1-f181.google.com with SMTP id z9-v6so12185327qto.7 for ; Thu, 25 Oct 2018 17:45:24 -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=zTiUeMyWQxrOl0Lg+fdlflDp1Wi1dfv/1GT9s6EKWVM=; b=o2IPC9I8I7d9C+7igGSg/PbD2lJE0KxakEYJ3Jdj+7VxL7RJokPf0Wk5KLNe+nz93P k4ARr7mm8hL3rxt9gwdlc3bXyaCfQqjc1ka1MHP+mah0xhO6O5lG6P9dQ62Xm+rpEkOz rOC3qrQQgfdhrcxAKK6pQ/cXU732YoKRPGdZXCDZFRjHcWRqNsnC/mKbZsFsZ7FDTyid TcTI1z+FfS2xJMxZwP7nDLS09fsMp7zlb3v3r3M+lvVvoND6+njA/IRcF1U4FGznEn6V GYWg/wQGIW8O8XC8I/y3kie+pQrszPAT7HwBlk4YZ4K+eqhbBXvZqgwDL2WYMlPEXgTb ZAUw== 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=zTiUeMyWQxrOl0Lg+fdlflDp1Wi1dfv/1GT9s6EKWVM=; b=lLFu8oyMl7EZ6FUHHgU0Uznjc6QS/TOYzjt84aL4426sd5tEsJGoxvn4TRjcshnBIN fgJ+ddoXg/8GiLIB0pTUqbwqnm6vIn/T/G2qAJuVyLb9/gk7FuRVfowXETxOPbpv9D5S NqTZ58RBUgKdcnSAPO9hBF649ipu6H8gwS/qgH3JW3vxc0IQBko3OEGYXUhMCfzV/gqQ UAjP+BmiGjEV3vCEbQ8TJ3Mneu/mehi1/mqElLp4CletnVoIoXIvNDL1yKj5NykUdlba 92H8fpBZndtoWqfWW23YYxk1TIXmuH5y/q5kgc5tHMCPON+3uATLBCM0PTUpNjkCbCO2 9x6A== X-Gm-Message-State: AGRZ1gINTepi7AYsh9futQFcL+wSQ37WNetdin2ZY+0jvK4ZW3l2ZntR geuflwNXPwQY8kPMcWnj2r3Sfg== X-Received: by 2002:ac8:1bf2:: with SMTP id m47-v6mr1342444qtk.239.1540514724184; Thu, 25 Oct 2018 17:45:24 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id y3-v6sm2371735qti.27.2018.10.25.17.45.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 17:45:23 -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 0/6] staging:iio:ad2s90: Add scale info and improve error handling Date: Thu, 25 Oct 2018 21:45:06 -0300 Message-Id: <20181026004512.31012-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. 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