Message ID | 1378817379-8238-36-git-send-email-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDA7X7F2WUEBBEVLXSIQKGQET6PXSAQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C0A0E260BE for <linaro@patches.linaro.org>; Tue, 10 Sep 2013 12:50:26 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id k18sf29718494oag.6 for <linaro@patches.linaro.org>; Tue, 10 Sep 2013 05:50:26 -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=Su32NRBx2sFIa+qLDDwPgNR8EMRTQuZpF2RbuAQhn9E=; b=ZDDbl5Yvo0z62NeesbYeO3+jkh6aP+IdmGpMBmyfu0WyVAdVR+/FrBIDcwIpQyH+pV /HcEl0rrkQUsZ7IW8M0NPO9s6a03uZ0sMln2KUos8OHjpB07KGEI+LJhVVoZjjR8FFfC 4xfqoi47FZtXVNK03TSB35Avf+MybOVEP+NVnd7F0anyXuDKe5JGbh/QCuhny7CfzbHR 7McvYPzXo4MEVanNiOoxGE6srFHyz5jiFZH7Vfdg2hB743ma+xCrOF/+by+uORswgQrH vreyqorNy46w4DGD+brUH9ymbICAvrbV4gf4v1OhS+4sbGTV+7ngDUCnrICLGokxMeoq Hh3w== X-Received: by 10.182.19.133 with SMTP id f5mr4279350obe.36.1378817426210; Tue, 10 Sep 2013 05:50:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.8 with SMTP id cy8ls1691017qeb.18.gmail; Tue, 10 Sep 2013 05:50:26 -0700 (PDT) X-Received: by 10.52.103.101 with SMTP id fv5mr793717vdb.31.1378817425952; Tue, 10 Sep 2013 05:50:25 -0700 (PDT) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id ci9si4406217vcb.31.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.50; Received: by mail-vb0-f50.google.com with SMTP id x14so4869515vbb.23 for <patchwork-forward@linaro.org>; Tue, 10 Sep 2013 05:50:25 -0700 (PDT) X-Gm-Message-State: ALoCoQltxm1hl3+nOxg4f8Rp6dCgGo+1674NtHp16+/aw5/j52HKlDV5gWwXHRHB3Q1kD1wyr98m X-Received: by 10.58.198.13 with SMTP id iy13mr22893033vec.11.1378817425832; Tue, 10 Sep 2013 05:50:25 -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 u4csp19419vcz; Tue, 10 Sep 2013 05:50:25 -0700 (PDT) X-Received: by 10.15.111.132 with SMTP id cj4mr3061931eeb.56.1378817421879; Tue, 10 Sep 2013 05:50:21 -0700 (PDT) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by mx.google.com with ESMTPS id x42si14874593eea.14.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:50:21 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.52 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.83.52; Received: by mail-ee0-f52.google.com with SMTP id c41so3805260eek.39 for <patches@linaro.org>; Tue, 10 Sep 2013 05:50:21 -0700 (PDT) X-Received: by 10.14.208.194 with SMTP id q42mr38855267eeo.31.1378817421332; Tue, 10 Sep 2013 05:50:21 -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:20 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> 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 <lee.jones@linaro.org> Subject: [PATCH 35/38] iio: gyro-core: st: Give some indication if device probing was successful Date: Tue, 10 Sep 2013 13:49:36 +0100 Message-Id: <1378817379-8238-36-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.212.50 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/iio/gyro/st_gyro_core.c b/drivers/iio/gyro/st_gyro_core.c index 09e24f9..e93b94c 100644 --- a/drivers/iio/gyro/st_gyro_core.c +++ b/drivers/iio/gyro/st_gyro_core.c @@ -345,6 +345,9 @@ int st_gyro_common_probe(struct iio_dev *indio_dev, if (err && irq > 0) goto st_gyro_device_register_error; + if (!err) + dev_info(&indio_dev->dev, "Successfully registered\n"); + return err; st_gyro_device_register_error:
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 <lee.jones@linaro.org> --- drivers/iio/gyro/st_gyro_core.c | 3 +++ 1 file changed, 3 insertions(+)