From patchwork Wed Aug 30 09:43:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 137205 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp4732139vqm; Wed, 30 Aug 2023 12:23:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQTT7qu0Fy08WTBANYJ0RDXPPwPLlKkzGyjL1jVfHEze82tAwwkAUQfhbS2tjlWKdtWj6G X-Received: by 2002:aa7:d1cc:0:b0:523:cfa4:5c3d with SMTP id g12-20020aa7d1cc000000b00523cfa45c3dmr2446699edp.13.1693423414839; Wed, 30 Aug 2023 12:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693423414; cv=none; d=google.com; s=arc-20160816; b=Jwt2+IBTiEPOEzog6nB6e1XaaC59KVov6jK+diz3ofWe6LoEHftujyhCA0LyigLV05 VegkuXc4/WATCj3nrHbb9kz6O9RsIL7Cb25PKt87k2vYZeHXnkS4ZjxheaU/6/mVkWOT LvHsM/zsly1rv5vC9VL6fH7sW/Sls5SF4MCKc18K6pBKQH443JYIfQTGdrKSJ8yGL2T/ mjhzB1EjQelGDlDUucGgHGXQBT4b4XNNKZGSxM39ViFjvuLS7HUrJhWvADJGrmQ/btbd QNJsMAk30G7PGbzzD1VA945icod2BeboZfQlWbgX9UIzg5Upz1VAnDJVT8oWXFTyUQY1 joIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NYZ7L9hgPu8YIE7GrRHIRA5CZYvtCBu10YnREjO66Fs=; fh=ANFgQTZXDaVdL7BiA6SO4D/WSNs+ZZKlV3WUoxPjN4Q=; b=lvxSWS3HtKnWakrfwFWF1cd9eGqGykEhwCfbIrdHKaZgc3qW9SEMPtI7RBRt+oKVmr iOf3a34o5zjZY8QxDPtdrr3npoUrShKBH8L0VQix9pS8TfvZwoATSDyiIF2HzEj4KzFx 3x8vYRRvUH+CQxP37QsdGiZr1b73r276bi5CKZ+tq9o4xWXrmazjALzpwyI3l/rF/i/c 9zv5wBFermNd+aTJL2GU8eoM1CdhE6HsgXidEj5yhAyNLA1crTIsM0anuqjFu7Uocrbq 62kLvBNw0As3hyhql1EPmkTjgwcsLJiBonSOQZXfKidjIOrF4Re7L9rwhRjXkPzNVFH7 aaCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a056402121400b00521764d4012si8022207edw.213.2023.08.30.12.23.09; Wed, 30 Aug 2023 12:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245128AbjH3TPq (ORCPT + 99 others); Wed, 30 Aug 2023 15:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242800AbjH3Jnl (ORCPT ); Wed, 30 Aug 2023 05:43:41 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D6221A1; Wed, 30 Aug 2023 02:43:39 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 37U9Bq1w032128; Wed, 30 Aug 2023 05:43:28 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3sswp9jajc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Aug 2023 05:43:28 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 37U9hRCl007491 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Aug 2023 05:43:27 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Wed, 30 Aug 2023 05:43:26 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Wed, 30 Aug 2023 05:43:26 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.194]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 37U9hFrj006777; Wed, 30 Aug 2023 05:43:18 -0400 From: Antoniu Miclaus To: , , , CC: Antoniu Miclaus Subject: [PATCH] iio: addac: ad74413r: fix function prefix typo Date: Wed, 30 Aug 2023 12:43:14 +0300 Message-ID: <20230830094314.26353-1-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: Ia-XIoSHDFHQsbr_y3Sq5mUpPSOa6W4F X-Proofpoint-ORIG-GUID: Ia-XIoSHDFHQsbr_y3Sq5mUpPSOa6W4F X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-29_16,2023-08-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 clxscore=1011 spamscore=0 mlxlogscore=891 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2308300090 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775683150965446791 X-GMAIL-MSGID: 1775683150965446791 Use complete device name prefix in the input current offset getter function. Fixes: fea251b6a5db ("iio: addac: add AD74413R driver") Signed-off-by: Antoniu Miclaus --- drivers/iio/addac/ad74413r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/addac/ad74413r.c b/drivers/iio/addac/ad74413r.c index 6b0e8218f150..75216ece7ad6 100644 --- a/drivers/iio/addac/ad74413r.c +++ b/drivers/iio/addac/ad74413r.c @@ -705,8 +705,8 @@ static int ad74413r_get_input_current_scale(struct ad74413r_state *st, return IIO_VAL_FRACTIONAL; } -static int ad74413_get_input_current_offset(struct ad74413r_state *st, - unsigned int channel, int *val) +static int ad74413r_get_input_current_offset(struct ad74413r_state *st, + unsigned int channel, int *val) { unsigned int range; int voltage_range; @@ -991,7 +991,7 @@ static int ad74413r_read_raw(struct iio_dev *indio_dev, return ad74413r_get_input_voltage_offset(st, chan->channel, val); case IIO_CURRENT: - return ad74413_get_input_current_offset(st, + return ad74413r_get_input_current_offset(st, chan->channel, val); default: return -EINVAL;