Commit a605c8f4 authored by Alexandru Ardelean's avatar Alexandru Ardelean Committed by Jonathan Cameron

tools: iio: make iioutils_get_type() private in iio_utils

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: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210215104043.91251-23-alexandru.ardelean@analog.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 0d596bb2
...@@ -82,10 +82,11 @@ int iioutils_break_up_name(const char *full_name, char **generic_name) ...@@ -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. * Returns a value >= 0 on success, otherwise a negative error code.
**/ **/
int iioutils_get_type(unsigned *is_signed, unsigned *bytes, unsigned *bits_used, static int iioutils_get_type(unsigned int *is_signed, unsigned int *bytes,
unsigned *shift, uint64_t *mask, unsigned *be, unsigned int *bits_used, unsigned int *shift,
const char *device_dir, const char *name, uint64_t *mask, unsigned int *be,
const char *generic_name) const char *device_dir, const char *name,
const char *generic_name)
{ {
FILE *sysfsfp; FILE *sysfsfp;
int ret; int ret;
......
...@@ -57,10 +57,6 @@ static inline int iioutils_check_suffix(const char *str, const char *suffix) ...@@ -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_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, int iioutils_get_param_float(float *output, const char *param_name,
const char *device_dir, const char *name, const char *device_dir, const char *name,
const char *generic_name); const char *generic_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment