Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1024946imd; Sat, 3 Nov 2018 15:58:57 -0700 (PDT) X-Google-Smtp-Source: AJdET5dTavydgJVHY8e/W8JEKD6VNu5h0usn6bz0r3pAKpDC8BQPXkJMWiEj489tz9j+9iKAQu90 X-Received: by 2002:a63:5a08:: with SMTP id o8mr15237113pgb.185.1541285937468; Sat, 03 Nov 2018 15:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541285937; cv=none; d=google.com; s=arc-20160816; b=cL8af39FjWVySMJY1C4mnITqnVxMScUhg0KRIBV1991S/0GH5WCC3jcqOB5wmDHtw1 G4TKGU9ePLxA9nS39Tl6I5e++jL5ZuWgx+pQWAN6jOYDCjbIgoSvqy9tad7ZdcZPmNI3 s95ZdBG3wHxR4mu5n5do99Uz6Za3W61s/3NEFF25A5FEv+3B/dAjmTlSpik0kCgVYqoq GYat/4SkZMwPgPWxd82VgZfFVn91old+Y1Mykx3KAo2C0SIVYEqBX6YgLdEQVWOdFKp4 v/BD+7/Dd3XyjB9lIoXlLKdkIXe7oztlSNwOE28jDHbb5A2oK3EjmufGKqoTRgExf6u4 M6yQ== 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=F+I8S7OpRxG6iAZAERu2twGJqQ3pbbYPaBYrB5yOYiM=; b=B//IZQobuW+ol/0l2TjJiinTgx0hS0HBtZaLoJjSM5bIQqOd/XBBFPc5n/wFc7xEoz 2uPNnxHoU18iErkTA8EYmT4HxxWdrYBteg2fJG28iIF6NYLgSaBBpGb0jU1Zr7H5uj4d YS4qcURgMAXRoXiH7bt3eTtaxMa41/ZRREqXmwEQEWdjlzPZx8fOvesOzqMnbUluK0h2 qouka5XrSjCfhm0z+Hj1nINVlJ63BFyaicNn4yCtlAOkF27YILA/kDoFfI8g89voZ2YI YB5k/I2wd7FvqoNmmet8qVac8BgM3uN/ec3i9iXvugkJnXM68LP6VLDj7QmV5D5Yoy+l u9zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=hZ2Kv2QI; 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 j5-v6si20672532pgq.573.2018.11.03.15.58.42; Sat, 03 Nov 2018 15:58:57 -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=hZ2Kv2QI; 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 S1728510AbeKDICq (ORCPT + 99 others); Sun, 4 Nov 2018 03:02:46 -0500 Received: from mail-qk1-f172.google.com ([209.85.222.172]:42829 "EHLO mail-qk1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbeKDICq (ORCPT ); Sun, 4 Nov 2018 03:02:46 -0500 Received: by mail-qk1-f172.google.com with SMTP id u68so8938047qkg.9 for ; Sat, 03 Nov 2018 15:50:05 -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=F+I8S7OpRxG6iAZAERu2twGJqQ3pbbYPaBYrB5yOYiM=; b=hZ2Kv2QI591E1pYJ8QnwBvheKbmyqSo7otAwxruOg1rLW2TIyigMdk36Y/+Mx/1Svh 876DnjZ8DeSCedZ8GjEZX1eM+f5dywTSoGHfSMvkcUB2+9if+oXy1tCNx6HFGk6a1Hrw dwh6fqbHwk9sV2Rwcqq4rh8cTWxfBU/qt48ZEhIQJPWVIGV4or03U1h/zz3geuU1ZyaK XRtiP/pAWFpHjHJv4oqjEDZe5Ttiy3GgmmiQ20PxWrYs2ac4RO2+3aC8IhxqDAYH63/7 rDoJVEjFA1dCBd+TDECQMlo/dpbVzLz+y0YCP5mDPadbKbbhkFjG3gYsJBgjotl4vjvM iawA== 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=F+I8S7OpRxG6iAZAERu2twGJqQ3pbbYPaBYrB5yOYiM=; b=kKA0YwyIujE5WDlV5KPkAFXzYQHjHwObZ2BXhZKA3/bwB1QlZ4bDP/xh3cyNubNI4K CpNSFXqscSl6oMge6cwIkNn+dC8pbIDDbqcFPV3O0dbkKJDPypF0/5Fh+9KwrlBfn70s MPn85A5QbWDOm2bwcjtqlnHwiEsJZgyiCADbYTgeEp2eWzuKPBP9Uh6snxicmdhYPeXC 6FGMlLtT2Mn2SLEdjHy2G5Q8FiPh8jNMspZtnYsULnyqim4sfmWo8ACVMT6LFoeq0+AC 76hRclbkB1ZIYG6KZjGrYr1IX/ARMc0I8u8buht9gLtxudqOJcWs5nmpYinDs6j1zTbc czYw== X-Gm-Message-State: AGRZ1gLqfSP6FAB8QKAUZJ8aHsPZ/WwkIrwMijbBvPLBx1Fvj13mZaLP biTnt3uSgpcA2ZJxlnExe+hwMQ== X-Received: by 2002:a37:b881:: with SMTP id i123-v6mr16151283qkf.290.1541285405132; Sat, 03 Nov 2018 15:50:05 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id 35-v6sm27550924qtu.69.2018.11.03.15.50.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Nov 2018 15:50:04 -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 v3 0/6] staging:iio:ad2s90: Add scale info and improve error handling Date: Sat, 3 Nov 2018 19:49:42 -0300 Message-Id: <20181103224948.31014-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 v3: - Removed unconnected change in patch 1 (whitespace tidying up). - Added comment to patch 2's description regarding a code block that was moved in patch 4. - Corrected scale in patch 5, from 2Pi/(2^12 - 1) to 2Pi/2^12 and using IIO_VAL_FRACTIONAL_LOG2. 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 | 53 ++++++++++++++++++--------- 1 file changed, 35 insertions(+), 18 deletions(-) -- 2.18.0