From patchwork Sat Oct 27 01:59:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matheus Tavares X-Patchwork-Id: 10658023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8A01915A7 for ; Sat, 27 Oct 2018 02:00:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7425D2C79A for ; Sat, 27 Oct 2018 02:00:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66D9B2C7A1; Sat, 27 Oct 2018 02:00:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 359022C79A for ; Sat, 27 Oct 2018 02:00:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726193AbeJ0Kjz (ORCPT ); Sat, 27 Oct 2018 06:39:55 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:33386 "EHLO mail-qt1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbeJ0Kjz (ORCPT ); Sat, 27 Oct 2018 06:39:55 -0400 Received: by mail-qt1-f174.google.com with SMTP id i15-v6so3439456qtr.0 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=bVf5Y2W9oFJuAcpssTTue/21E9qd1unxprOUjAJuglTa5Z3ZY4+XUG3OI8zwliHAtI LIbhMuH7r89xbimQM/8xA/O+/tA3cUT3twTvQt0rk2oPbtTzkTyrx752Qeyjn5MTqAPT 7tfBocX0yGkTZjK5Y3/EkxNWEYpAAuyyC8nAaZNwSeHfJgeR2SFSdbFJn2HSBexq33yU +eMUi8tyrwe9mZ44GPhe22VL9SKaXnikYEnqexwILiaEaWH6P9UfnswTWNEo2sPpWsAC Ch8ZIQiDRCQDkZc/EVktO/k2XNCPfao+Otjp7qK4waPN5DfIcPDy9l/K+wuyj1GSqoCi 2POw== X-Gm-Message-State: AGRZ1gKlgS1DwY36w1a3LYEAnZmj0xrVzhfDJLzl2DM7D9gNh7SyEqSs AJrf5J8VoT1Kj2dVZaTQl5xk4A== X-Google-Smtp-Source: AJdET5cL1GUilrbyh0cqKiYeyasx+obYBNtkwtqCLwSU52bpMfo+DhLYwXKlFdrp/HbWNIPeHM9nEw== 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-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)