Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1509915rdb; Mon, 8 Jan 2024 01:07:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYZAIq6zTtsJ6refLA+srsTDeNPZqb3a3ZPh6lhe7tm+UkkB9ak/o4EyKV/OQd0aA+6NGZ X-Received: by 2002:a05:6358:6f19:b0:174:ae98:fc95 with SMTP id r25-20020a0563586f1900b00174ae98fc95mr2423331rwn.14.1704704858562; Mon, 08 Jan 2024 01:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704704858; cv=none; d=google.com; s=arc-20160816; b=ZAYeLZ51OnzlwcyfTNRQXqrLtoicOgp1fYdNgFiX3QRZewcOslZ5jYsBP3jHh5VkXX x80bZEv+/Zea9VwmgHjHsz/hdfdYrWe8zwCmuQEmN9QIfgwKzdH543Q2fh/f7E2/aX8R D5AhCb5hfnMixEdDVfKQITyKu7U62TfWlMPRj2xivoTqNd+SnDlXnuuo0W2CejSimzwJ KQaUJvX0G2jT66ggONw8LNPZ1o8h4WKaXN+CbivKt0py61MRxEB0ivQXr+NJvi29ccwN /UHdhuy+hLA0EtyAtAT0svP2GBjS5tfeIkPeW2dfiE8Y7SLQHFCTdhjjCghv5tfNyCNC 0eZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=AvlSIPhnSxsAgUZ5VOCaG02vTPapjaMyzZC3lbOeJWU=; fh=P8PJAlRuov0VLTTQS7qT9MeuODaSvZgUw183s9P0GjQ=; b=ZTrhtiPbK8x6fIXCg92FhmQWaoIYnD3bh28Ff2zL/bXxhQcW6FdWKNjBMyUUHVF7TW TM9l0Sxh5uKIupsraQoz4UMyUc0av2Y1YVI609Z/q1dY+ZFv8qeyMIlDJpVjyOg64zBq mqMZSYIOsejh/XQ2fDPKdy3JGG3pGaAKM1lnaTfdtn4EH7z2BY/Kxar2+1I6xIxXzjRP 0+KyVpx2HmHI4FYS5giQuH97xl+nj0ni9JSXVJYWo7O17i17vyz53cY2GVO+jUxSiEMN 3JhYZbRAiSYYuVmWp9kLeBfMqVNy6w31qL/8Rfz9ayRdTTx+c1Bf0JxgH/v7CkDU1E9K PuxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cRHCx1tb; spf=pass (google.com: domain of linux-kernel+bounces-19241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u7-20020a656707000000b005c660acad7asi5633018pgf.4.2024.01.08.01.07.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:07:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cRHCx1tb; spf=pass (google.com: domain of linux-kernel+bounces-19241-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3581728279B for ; Mon, 8 Jan 2024 09:07:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06F4D11C89; Mon, 8 Jan 2024 09:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cRHCx1tb" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B9EB11C86 for ; Mon, 8 Jan 2024 09:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3366ddd1eddso1800331f8f.0 for ; Mon, 08 Jan 2024 01:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704704826; x=1705309626; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=AvlSIPhnSxsAgUZ5VOCaG02vTPapjaMyzZC3lbOeJWU=; b=cRHCx1tbGGdbpx0wfS45W8o4Ix9oH6s8GjAShrv6W6Zrxh3Vv0lBERvsn561cbvdBA FYPuZ46pLfNV6nNPYyuIjgx8mFmz2BRZSKXIhfKbwE7ukOanYYyAmR+ch8iw4L2ErUav vgNt75p2TmTC5m171jlrt/7xEfm7y/sBsr+KIhIhPuS/irQmp/RuvDKvYDuLK5J66KLq 2jRMUyAR4/CBXtJK9kW0PVmv/4/mIm/f5XRMZuUmy4LfzKQ4F32ElxBH9DTUTvEvsqEo 2bNcjJu92hrYIUcBpVju9kHEznihl4zr+TWMfXJoEiSRdwprJJMRzwqCHoXU2ymI3Twx 8Ygw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704704826; x=1705309626; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AvlSIPhnSxsAgUZ5VOCaG02vTPapjaMyzZC3lbOeJWU=; b=KVC1aKEj41IGGAL1FEbyVJH7IL96598hW9oXa/tyTf7QE6cuhmSEI88OPDrx8Wgzyy 8YwRSTo3rXmQ4Dc18W2QdX4/95YQTWMJpTmhxcPSdXlwYo6dIhfQhqFh7igyP7BvyHdX l+mGAUJ9DTNfORDsHJV7dkowc3Hj06QxJHEBSGDd8J7FyuvwtGh6rywLT8aDOISUTO9s K1N1Tzoo1fFE2KhBHw3AEzIYZfza8hEUBXek0i+kA/Z8hUh2vNl4Wk5lC/YusYETWnFB qcqSk8Ky+sSRahxnY3QOQlKGoIdIA/Z3+UfQwZ36yPLKcU/ZGIOP1sd5aKEiHXGdr3ug A3Iw== X-Gm-Message-State: AOJu0YzNGxVwKgc8SOZUyj5y09OkAB/omLNVesn2Emb2pPkpq8qG8ZHx 9A0PDkHHi2ePzkWSJiSXrVi6DmNICwtz/A== X-Received: by 2002:a05:600c:5d5:b0:40d:560e:26f3 with SMTP id p21-20020a05600c05d500b0040d560e26f3mr920797wmd.136.1704704826697; Mon, 08 Jan 2024 01:07:06 -0800 (PST) Received: from localhost ([102.140.209.237]) by smtp.gmail.com with ESMTPSA id s11-20020a05600c45cb00b0040e395cd20bsm10132486wmo.7.2024.01.08.01.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:07:06 -0800 (PST) Date: Mon, 8 Jan 2024 12:07:02 +0300 From: Dan Carpenter To: Marcelo Schmitt Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] iio: adc: ad7091r8: Fix error code in ad7091r8_gpio_setup() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding There is a copy and paste error so it accidentally returns ->convst_gpio instead of ->reset_gpio. Fix it. Fixes: 0b76ff46c463 ("iio: adc: Add support for AD7091R-8") Signed-off-by: Dan Carpenter --- drivers/iio/adc/ad7091r8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad7091r8.c b/drivers/iio/adc/ad7091r8.c index 57700f124803..700564305057 100644 --- a/drivers/iio/adc/ad7091r8.c +++ b/drivers/iio/adc/ad7091r8.c @@ -195,7 +195,7 @@ static int ad7091r8_gpio_setup(struct ad7091r_state *st) st->reset_gpio = devm_gpiod_get_optional(st->dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(st->reset_gpio)) - return dev_err_probe(st->dev, PTR_ERR(st->convst_gpio), + return dev_err_probe(st->dev, PTR_ERR(st->reset_gpio), "Error on requesting reset GPIO\n"); if (st->reset_gpio) { -- 2.42.0