Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1190723pxb; Wed, 10 Feb 2021 02:18:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgOXFUBmGKHIclo0VqL52EGYfDbwrlXa0sWyNqrVsEINyo/NZo8xV2hHWEwaoXJr/Gryzp X-Received: by 2002:a17:907:2d92:: with SMTP id gt18mr2280348ejc.330.1612952338950; Wed, 10 Feb 2021 02:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612952338; cv=none; d=google.com; s=arc-20160816; b=zDw6kCNKpiF9ZhbhXtL+rn5o6TZA90M5hAo3B3G8jlJjwL96wvL4uEYhKaEyly2sIP Ioa6Pdv3dakpRj0mL3IF21386Gfw1bXU/N05KJVgbF/YZrxd7/FK1oXz3RHiIHvX3GQZ NyCu8m6oxWy5UpFm2iNu26qDpheA2LmKFKX4POUzb5c40GJZmqMeN7N5qAUgxaeKqGF3 21hJno6yRct8duRf0yPlXtB5n0eIrl7lKuuYpxau96sdmGNQNTLWAomgwgAlErixWRh7 gqXWsmburzB1ej0z+aypbTuc4At+0qRTk6+eAfsRf90I4Dc2kiIXBlTImi9E+eXg9WPU Ywlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=MCvYPr49Y0j2XEsN1yTjNgfLkfVnNeAlvBtBiT23WvA=; b=po9MXCBl2cktm01LdXtLfkUlvWP9L6VsoIt7vrLSbSWDRxauTkGXl/u/CEAId64qYW LzNQTDbfVEBL1CLOBFfhtzMcLGqy1JObvgS4iVGfZqgBIqIM9H7tJ2f0FEKfSSiHcy+Y 5g7lJHOXxow1+H/8xYFOYgdprmG7tb5xDdb66bT5V2A7Tbgw4BvB9u8CesPPD/0EGRI5 m6Ao8po+N4etc7fZm3xiNaPsnPoCEEmfOCN/w6NzDr2qT1/+W9lcVFP+nkOUNcQGCrSP Jle3aHz+wwX7ScyEWj3W9qAAFZfPSQ9P1M50R8Ar7vh8KvNBKoW2/ea4pBs2xWN7cdHR qFvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si1084944edy.53.2021.02.10.02.18.35; Wed, 10 Feb 2021 02:18:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230125AbhBJKPj (ORCPT + 99 others); Wed, 10 Feb 2021 05:15:39 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:62156 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbhBJKHY (ORCPT ); Wed, 10 Feb 2021 05:07:24 -0500 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11AA6PKq022840; Wed, 10 Feb 2021 05:06:32 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 36hr7qc5xq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Feb 2021 05:06:32 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 11AA6VuZ035803 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Wed, 10 Feb 2021 05:06:31 -0500 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 10 Feb 2021 05:06:30 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.721.2; Wed, 10 Feb 2021 05:06:29 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Wed, 10 Feb 2021 05:06:29 -0500 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 11AA5x0L018045; Wed, 10 Feb 2021 05:06:27 -0500 From: Alexandru Ardelean To: , CC: , , , , , , , Alexandru Ardelean Subject: [PATCH v4 15/17] tools: iio: make iioutils_get_type() private in iio_utils Date: Wed, 10 Feb 2021 12:08:21 +0200 Message-ID: <20210210100823.46780-16-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210210100823.46780-1-alexandru.ardelean@analog.com> References: <20210210100823.46780-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-10_03:2021-02-10,2021-02-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102100098 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a bit of a tidy-up, but also helps with extending the iioutils_get_type() function a bit, as we don't need to use it outside of the iio_utils.c file. So, we'll need to update it only in one place. With this change, the 'unsigned' types are updated to 'unsigned int' in the iioutils_get_type() function definition. Signed-off-by: Alexandru Ardelean --- tools/iio/iio_utils.c | 9 +++++---- tools/iio/iio_utils.h | 4 ---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tools/iio/iio_utils.c b/tools/iio/iio_utils.c index 7399eb7f1378..a96002f2c2d5 100644 --- a/tools/iio/iio_utils.c +++ b/tools/iio/iio_utils.c @@ -82,10 +82,11 @@ int iioutils_break_up_name(const char *full_name, char **generic_name) * * Returns a value >= 0 on success, otherwise a negative error code. **/ -int iioutils_get_type(unsigned *is_signed, unsigned *bytes, unsigned *bits_used, - unsigned *shift, uint64_t *mask, unsigned *be, - const char *device_dir, const char *name, - const char *generic_name) +static int iioutils_get_type(unsigned int *is_signed, unsigned int *bytes, + unsigned int *bits_used, unsigned int *shift, + uint64_t *mask, unsigned int *be, + const char *device_dir, const char *name, + const char *generic_name) { FILE *sysfsfp; int ret; diff --git a/tools/iio/iio_utils.h b/tools/iio/iio_utils.h index 74bde4fde2c8..a5d0aa8a57d3 100644 --- a/tools/iio/iio_utils.h +++ b/tools/iio/iio_utils.h @@ -57,10 +57,6 @@ static inline int iioutils_check_suffix(const char *str, const char *suffix) } int iioutils_break_up_name(const char *full_name, char **generic_name); -int iioutils_get_type(unsigned *is_signed, unsigned *bytes, unsigned *bits_used, - unsigned *shift, uint64_t *mask, unsigned *be, - const char *device_dir, const char *name, - const char *generic_name); int iioutils_get_param_float(float *output, const char *param_name, const char *device_dir, const char *name, const char *generic_name); -- 2.17.1