Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4846121pxb; Mon, 15 Feb 2021 02:51:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2wZAmKP+p+xfbcs9b9X1Jn0hjv/w8G4Uy38AauXY94myQHQlq2rqf13MmrcBqO0PMkuOA X-Received: by 2002:a17:906:199a:: with SMTP id g26mr15109136ejd.485.1613386280788; Mon, 15 Feb 2021 02:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613386280; cv=none; d=google.com; s=arc-20160816; b=cqCWSdi2+Gdgo6D2hbGHvzIHBQZNOs6v6Ti9NDiFt0CvO7DI9G4lUtPmo8n4s1qKtH pfzxZGsDem2fT1MVm3tUsHLdgosRNPIs3oAmlvLh59b6H66u7I1zrSBzRrlsxsjp1Vr1 NpOrcSzTDtewufgBE8GcDF4X2gewgA3whlJncgZRYhIOOKPMSuRzkLugReHvXStL/rAD ozqOsLa3WztbTwOlis2d7lXmu/r22KXDa3Q408+6cI4d+MKap6c0wuK6mgD+JQNbUTDe gth5DnROScLYHRV7s6Wy5xhKmHELGkKRzX3Vzkjj/K/NYV+PISatkrkxh5bLooBj42VO MQ9A== 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=kFPOHpuwLQzJ2lmOWdRXyUsckbXbgL+O0ecxn74Jc1cmxUviA+ZEduOQhsajAC+tr0 MkiJQr9coTG3RqY4jKp8tA43+hKL5u893I+3D10RClFuNsYSd3WxdXUE4GwcixxCXAWJ OKtRXif8a69knT/FrIEAG3QLR0PidMkcp68RSMOBs0pwNUlPyVnAEfJCDJIyL/WuuR2A bYnpRNHW4C2tBrdoOVrgyd2As8gM/6GKwRLEpiKBWTp/8OrRtvPUL0BAXuuVPuqc9eCB X1Lsu8IgPC/mEO/dcVz6xrHK1MpogRfltWfec/n3X49LggC7arkEz6mVI268sypxJVhT NfEw== 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 t11si6379384ejs.239.2021.02.15.02.50.53; Mon, 15 Feb 2021 02:51:20 -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 S230038AbhBOKsW (ORCPT + 99 others); Mon, 15 Feb 2021 05:48:22 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:10628 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230270AbhBOKkW (ORCPT ); Mon, 15 Feb 2021 05:40:22 -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 11FAaGN2023329; Mon, 15 Feb 2021 05:39:29 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com with ESMTP id 36p9gavkhx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Feb 2021 05:39:29 -0500 Received: from SCSQMBX10.ad.analog.com (SCSQMBX10.ad.analog.com [10.77.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 11FAdROL023180 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Feb 2021 05:39:28 -0500 Received: from SCSQCASHYB7.ad.analog.com (10.77.17.133) by SCSQMBX10.ad.analog.com (10.77.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.721.2; Mon, 15 Feb 2021 02:39:26 -0800 Received: from SCSQMBX10.ad.analog.com (10.77.17.5) by SCSQCASHYB7.ad.analog.com (10.77.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.721.2; Mon, 15 Feb 2021 02:39:26 -0800 Received: from zeus.spd.analog.com (10.66.68.11) by scsqmbx10.ad.analog.com (10.77.17.5) with Microsoft SMTP Server id 15.2.721.2 via Frontend Transport; Mon, 15 Feb 2021 02:39:26 -0800 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 11FAcQUp017530; Mon, 15 Feb 2021 05:39:22 -0500 From: Alexandru Ardelean To: , CC: , , , , , Alexandru Ardelean Subject: [PATCH v6 22/24] tools: iio: make iioutils_get_type() private in iio_utils Date: Mon, 15 Feb 2021 12:40:41 +0200 Message-ID: <20210215104043.91251-23-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210215104043.91251-1-alexandru.ardelean@analog.com> References: <20210215104043.91251-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-15_04:2021-02-12,2021-02-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 clxscore=1015 mlxscore=0 priorityscore=1501 impostorscore=0 adultscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102150087 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