From patchwork Mon Jan 8 09:07:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 185857 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp904991dyq; Mon, 8 Jan 2024 01:07:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IECk5LSjpKBFMhZcDZJeZKEEoMB2+il5SROugXKqK2+K0bIJZ0HyIwPP5lc4wL3J0otqL0S X-Received: by 2002:a9d:6192:0:b0:6d9:d8e3:b2ce with SMTP id g18-20020a9d6192000000b006d9d8e3b2cemr2562490otk.77.1704704866864; Mon, 08 Jan 2024 01:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704704866; cv=none; d=google.com; s=arc-20160816; b=K77k2tTC2DozDmf8m34QEjVub7Ee+GhsHvILyoHk9qHLBijvQZOEovihhBbGbZqVKx /F9MZ4UkLw5d1+sRxyVW5ZhQR3tyVahMQyAht/TVYMBXI77pwP7awcqvqc+QlurMC3qx Pniswp6Wu7eEsoM9s6bjcILpc2xU8yF+JWhpSza8Zlo8mcOtjHo1vs+qhPG/Q3RYXpRL xom9OSSrksPbGRaHASgkQTzbetsCJZO3X3w/9FYTmYnc4YQJELtLDCGVO/Qh+sMIo5tG t0rAlC1mh2mjthDhJKaoWGkiXIbyLZc1ZJshBbOLAgKyNGaGb7pa6y5i5Fsq7SOIXHFr Uy5A== 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19241-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u70-20020a637949000000b005cec1f8ccfcsi5761821pgc.698.2024.01.08.01.07.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:07:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19241-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19241-ouuuleilei=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 7EDE4282972 for ; Mon, 8 Jan 2024 09:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBAED12B84; Mon, 8 Jan 2024 09:07:13 +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-Disposition: inline X-Mailer: git-send-email haha only kidding X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787512610659433598 X-GMAIL-MSGID: 1787512610659433598 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 Reviewed-by: Marcelo Schmitt --- 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) {