Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2105167pxb; Thu, 11 Feb 2021 04:39:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8XNAo8sPH7riVUCQV4AEZLXg5pZOutB2woOVo5hBAG6dQlBjkN5x6M+P8uOlztieYhDZs X-Received: by 2002:a50:d302:: with SMTP id g2mr8236276edh.75.1613047144180; Thu, 11 Feb 2021 04:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613047144; cv=none; d=google.com; s=arc-20160816; b=w9KDSTrzHrzy2VHIFGBe+OuTWA9J6n4qe8hca2W3K4w6xX3QFbf4fvy4F1XPy7+aBG H/odP6qn0A/bcDg1hiYQC2FRa39n4NQdfkIEEGFOw8H0htIU0CGoxZ1H4FtIf8ejFL1B BXRWkpOASWAExH/EYX6QdgtXPaw54J0sQsHUkLdpZF8OfBzruvNciD5qqGIM1ImBvkfN no6rVkl79Wi4yCLI+xGq++fMtIzhMCKkwvwfmBFGOCahPUEXFbc86FU6YqKyWaKC1bJC wmk8ciYmoISqqx4/+OKatAo1d2XZpuEw4zHDmjPIlciosgz84SP7vGjEfboRQk0ObknE zfeg== 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=GSmyeKqfUws4n9EWlebVK4++XYTOQ3MhFzOAyQG85jgueqSJ9ChTft6glu1+BgM/3g VWS3iSeXZHkQouF1LX9+UFlKDtkBWES7/RIO0tyI5iW59BN748ATa3U1REmQ0QKrP8ga pOisavIdDD7NjFfSpoAHrcDnn3xR6g4SVucTmIeaJ2JrxELUV28a53EtI7IwySRGVeLG WlvWWgbT7gIADPsnaQbF8O0tmXfvz8Quknqj325qhOFPgrbcPeajs1U9O+8MqoDkmrjN nm/nDGECPykCEEqV78uwKCfKsra+K22Fvdt6lYjo+bEnoxQoua+etUDb+z2bZwDvdF9+ w0tA== 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 g23si3563663ejf.749.2021.02.11.04.38.39; Thu, 11 Feb 2021 04:39:04 -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 S231622AbhBKMhb (ORCPT + 99 others); Thu, 11 Feb 2021 07:37:31 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:36236 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbhBKMX5 (ORCPT ); Thu, 11 Feb 2021 07:23:57 -0500 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11BCLWNQ025201; Thu, 11 Feb 2021 07:23:05 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com with ESMTP id 36hrw905bs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Feb 2021 07:23:04 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 11BCN3qd004292 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 11 Feb 2021 07:23:03 -0500 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.721.2; Thu, 11 Feb 2021 07:23:02 -0500 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.721.2 via Frontend Transport; Thu, 11 Feb 2021 07:23:02 -0500 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 11BCMYWn011557; Thu, 11 Feb 2021 07:23:01 -0500 From: Alexandru Ardelean To: , CC: , , , , , , , Alexandru Ardelean Subject: [PATCH v5 15/17] tools: iio: make iioutils_get_type() private in iio_utils Date: Thu, 11 Feb 2021 14:24:50 +0200 Message-ID: <20210211122452.78106-16-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210211122452.78106-1-alexandru.ardelean@analog.com> References: <20210211122452.78106-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-11_06:2021-02-10,2021-02-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 phishscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102110110 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