diff options
author | Hartmut Knaack <knaack.h@gmx.de> | 2015-05-31 14:40:01 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-31 19:19:35 +0100 |
commit | 2156b179993e3d5b422976181ba17d91153313e1 (patch) | |
tree | 0fe9ee2748550e7323f8a7b7ae36cab6f231233f /tools/iio | |
parent | 096f9b862e605fe08bb30e4f7a381684a8ff82ed (diff) | |
download | linux-stable-2156b179993e3d5b422976181ba17d91153313e1.tar.gz linux-stable-2156b179993e3d5b422976181ba17d91153313e1.tar.bz2 linux-stable-2156b179993e3d5b422976181ba17d91153313e1.zip |
tools:iio:iio_utils: mark private function static
Functions _write_sysfs_int() and _write_sysfs_string() are supposed to
be called only by public wrappers, so make them static.
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio')
-rw-r--r-- | tools/iio/iio_utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/iio/iio_utils.c b/tools/iio/iio_utils.c index 60e5ec4165b7..812153ff18c3 100644 --- a/tools/iio/iio_utils.c +++ b/tools/iio/iio_utils.c @@ -524,7 +524,7 @@ error_close_dir: return ret; } -int _write_sysfs_int(char *filename, char *basedir, int val, int verify) +static int _write_sysfs_int(char *filename, char *basedir, int val, int verify) { int ret = 0; FILE *sysfsfp; @@ -574,7 +574,8 @@ int write_sysfs_int_and_verify(char *filename, char *basedir, int val) return _write_sysfs_int(filename, basedir, val, 1); } -int _write_sysfs_string(char *filename, char *basedir, char *val, int verify) +static int _write_sysfs_string(char *filename, char *basedir, char *val, + int verify) { int ret = 0; FILE *sysfsfp; |