Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1791148imu; Sat, 8 Dec 2018 07:18:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/XZ0+e7CTeFVQ9WmkuCnbVbqwLpo5braV1PuUgCXHoPJVr98xiu6bqkr+dV2maULY7W031q X-Received: by 2002:a63:ab08:: with SMTP id p8mr5327023pgf.87.1544282298250; Sat, 08 Dec 2018 07:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544282298; cv=none; d=google.com; s=arc-20160816; b=To9AOugsUi8gR+KZXr30uPsD83PWH6QvG2DDwDr7n+MPrbtTT0gT0oVCzm/mUfGna1 rINFJDMoJ1ON4rB1xOg3R73qj7n13QcTHGgR3YJ61ql4iNG0N4FyDqZUm00Q7zobvZRy bIg2Higbp1vqiDF0Yyv2/1Nho8BuO408SLZnhYakOoYsqcWu4Bc+nkbkNZlUzhwA3eJH h2jCAY9+5sRLSLp7pf5mc8Ui1kTSEFGwXqc+CXojbgLnTI6pKbjeTQ6GZ9K1D43J94No YGQ6T0h5uSouBxzN5roqt4bcnmyiNW9q3OkoewMREP0RoxtWGy92262lq6g0nro0AdPh /cHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=sx7bEFL8SVo2GNwtK9DKmgT5Sowc26cvdGR4sApF5j4=; b=RTs+lgyhf5Rrin9KIbK7mEP3CBhb9na0XfQgFExReuAmufk4xfEv5se+kWt0IolRLy mKoBaSZOlESXJoUd+suQdcreWEePEPam9X+MqKAq6vsyQcCopmX03uK/C2WhbE9rodVA XpQl8RjFzDgNL0piSk4RQEKn8HgSG/kI8U0JSCntf0ihZiUo9Ny4sDhrUzjGh0kQVNTY F/Ob4pbLtjvBQIhQbkuwFEnqGTenmyEp12qYHX2MNd/YNroik+8UZDKhgKNvmAI77fc1 TUt+N9im8JT6zM5d5TsuPcWIGg/xzzV0lfmzOIv4U3Gi+HpXSLwtcMy/puTQAlPURl9/ hq1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X404tw4n; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si5620320plx.33.2018.12.08.07.17.46; Sat, 08 Dec 2018 07:18:18 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=X404tw4n; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726227AbeLHPQ5 (ORCPT + 99 others); Sat, 8 Dec 2018 10:16:57 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44899 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbeLHPQz (ORCPT ); Sat, 8 Dec 2018 10:16:55 -0500 Received: by mail-pl1-f193.google.com with SMTP id k8so3174841pls.11; Sat, 08 Dec 2018 07:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=sx7bEFL8SVo2GNwtK9DKmgT5Sowc26cvdGR4sApF5j4=; b=X404tw4nsn6BtgV2j+dnytQ+5lGZs9FoLv7seQHXeECasuJG9h7hNVL5SvbomcY8sm OCclwrkppJp8zXaNDkzHu71Bovpqfh+opBkiZZVKLMSfF/E5tHZKYMI5yDP8oKL5wQOK BguDDEfRjsZlEThBxtY5jSGp5fmLliYrBgCp3bL0eVKnCaacmTk3XQV/LHB7S+3QPZEO JDZmLDP9f7BOXpJcFIlPA25c4voTB5EKLSeGF+7gquC75tZP+fL6N5C3LjgaZ4O2Wkrn qk1aYQoqWbdCtaYgFeqSci+14XyrGwTIfYtEZxT3+kUjhqcwMnA2LXkrh9gVYEIiT5Kn FsFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=sx7bEFL8SVo2GNwtK9DKmgT5Sowc26cvdGR4sApF5j4=; b=lrU5xvJERgklQt8goFDxvJ+WocurLHkTLr6t+wAZev4FodazKCmmnbY5MsxxjmnY0d 3Y18ocbhdp2GusNxflD4ieZhlVNlFh40VxbjKVvHxsdMpDLePBSc36xg81X3h9YPcijA jds+g/DFnbOR1XMn697We4XPnmcTxgLg8zRoJFVdWYbx7SdN5KJekr4kbg/F9pXlwmEW FljcY40lAi6F4nweP/0Kl8+xbcEkyktvDGZP8l6KRrbTM++0YRKYxGtBxdP8akqoWnBf +zCgYmBC5dU6ZY/pykvSCUJ3gvX3rhU4OaxTdij0xd3vQWjunTWS3laIU98wM2cfL6IU klNA== X-Gm-Message-State: AA+aEWZKFYX1JRsph3kimX15uu42b69Ya55o5yJAGpd9pm8608RRGyIY uvWToao5vXBZWgAWGEhAKJ0= X-Received: by 2002:a17:902:6b49:: with SMTP id g9mr5907021plt.98.1544282214763; Sat, 08 Dec 2018 07:16:54 -0800 (PST) Received: from localhost.localdomain ([103.212.140.153]) by smtp.gmail.com with ESMTPSA id e23sm9774091pfh.68.2018.12.08.07.16.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Dec 2018 07:16:54 -0800 (PST) From: Shreeya Patel To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, shreeya.patel23498@gmail.com Subject: [PATCH v3 3/3] Staging: iio: adt7316: Add a dev_err() message Date: Sat, 8 Dec 2018 20:46:38 +0530 Message-Id: <20181208151638.8759-4-shreeya.patel23498@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181208151638.8759-1-shreeya.patel23498@gmail.com> References: <20181208151638.8759-1-shreeya.patel23498@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a dev_err() message "failed to request irq" for describing what went wrong when an error contition is statisfied. Signed-off-by: Shreeya Patel --- drivers/staging/iio/addac/adt7316.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index 97dd48153293..e3eb8ad06403 100644 --- a/drivers/staging/iio/addac/adt7316.c +++ b/drivers/staging/iio/addac/adt7316.c @@ -1832,8 +1832,11 @@ static int adt7316_setup_irq(struct iio_dev *indio_dev) NULL, adt7316_event_handler, irq_type | IRQF_ONESHOT, indio_dev->name, indio_dev); - if (ret) + if (ret) { + dev_err(&indio_dev->dev, "failed to request irq %d\n", + chip->bus.irq); return ret; + } if (irq_type & IRQF_TRIGGER_HIGH) chip->config1 |= ADT7316_INT_POLARITY; -- 2.17.1