From patchwork Tue Sep 10 12:49:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 19883 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7AC0246A4 for ; Tue, 10 Sep 2013 12:50:18 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id h1sf29718935oag.9 for ; Tue, 10 Sep 2013 05:50:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=s+8P2H1q89tyKareoTjmLxQ9lI9mubEK3czkg4NFE4g=; b=kFvCtTqcm6NEJyCrKfBIIYclUTvnoWGpFLJ68VjAx7IMQKpISXHSpLUFtQpZ3htmlx f2eZDO6lHkd7uTn2YAwqOuoE+3gs6boHwWIhiJHl6OvRvSJbu52k4sxmc4a6vpiqPQj0 pa9lrpNxOfa4AFL59ppSmYrNDMGguhjidSfr7pElqN9YJMvDRbaDRpYkL6rjzqYz+xHY 3A/6oapV7AhIu0S5DbbzQQKcJieuf1S0G4Mw/xaYEiNBxAe7X7AzXRW1+pIUhOc9rOL/ c8k9B3u/Mvy8W62aQ2joqtReiPLmuZIpH4EyKIMj28X5P+o6NemrA5+g+miy8o6Eox0L 2bqw== X-Received: by 10.182.204.33 with SMTP id kv1mr4254927obc.26.1378817418153; Tue, 10 Sep 2013 05:50:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.99.10 with SMTP id em10ls2154908qeb.82.gmail; Tue, 10 Sep 2013 05:50:17 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr1356775vdb.25.1378817417927; Tue, 10 Sep 2013 05:50:17 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id dt10si276888vdb.125.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id jx11so4442261veb.7 for ; Tue, 10 Sep 2013 05:50:17 -0700 (PDT) X-Gm-Message-State: ALoCoQk8uzyFGOrPXy2u1+dy0CjZGvlyt+m9UQkxlhs5TVOiyftK99uNCwkaqHt1WljESoy1DaQ2 X-Received: by 10.220.145.132 with SMTP id d4mr22763666vcv.9.1378817417856; Tue, 10 Sep 2013 05:50:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp19408vcz; Tue, 10 Sep 2013 05:50:17 -0700 (PDT) X-Received: by 10.14.10.2 with SMTP id 2mr3022000eeu.63.1378817414694; Tue, 10 Sep 2013 05:50:14 -0700 (PDT) Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by mx.google.com with ESMTPS id z8si14858981eee.83.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.215.172; Received: by mail-ea0-f172.google.com with SMTP id r16so3882998ead.3 for ; Tue, 10 Sep 2013 05:50:14 -0700 (PDT) X-Received: by 10.15.77.199 with SMTP id p47mr12077152eey.50.1378817413978; Tue, 10 Sep 2013 05:50:13 -0700 (PDT) Received: from localhost.localdomain (cpc15-aztw25-2-0-cust493.aztw.cable.virginmedia.com. [92.233.57.238]) by mx.google.com with ESMTPSA id z12sm31123277eev.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:13 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jic23@cam.ac.uk Cc: arnd@arndb.de, linus.walleij@linaro.org, denis.ciocca@st.com, linux-iio@vger.kernel.org, Lee Jones Subject: [PATCH 27/38] iio: pressure-core: st: Give some indication if device probing was successful Date: Tue, 10 Sep 2013 13:49:28 +0100 Message-Id: <1378817379-8238-28-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1378817379-8238-1-git-send-email-lee.jones@linaro.org> References: <1378817379-8238-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , At the moment the driver is silent in some error cases and if successful. Prior to this patch there was no clear way to know if the driver succeeded or not without looking deep into sysfs. Signed-off-by: Lee Jones --- drivers/iio/pressure/st_pressure_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c index 6ffd949..34b3fb1 100644 --- a/drivers/iio/pressure/st_pressure_core.c +++ b/drivers/iio/pressure/st_pressure_core.c @@ -280,6 +280,9 @@ int st_press_common_probe(struct iio_dev *indio_dev, if (err && irq > 0) goto st_press_device_register_error; + if (!err) + dev_info(&indio_dev->dev, "Successfully registered\n"); + return err; st_press_device_register_error: