From a6014a75a260e6047912950756065f7aaeb43f13 Mon Sep 17 00:00:00 2001
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Date: Fri, 16 Dec 2022 10:02:09 +0100
Subject: [PATCH] core: chip: drop the unneeded prefix from a static function

Rename the static function that uses the word 'chip' twice in its name.
Just remove the prefix as we don't export this symbol.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 lib/chip.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/chip.c b/lib/chip.c
index e0fb309..6f12214 100644
--- a/lib/chip.c
+++ b/lib/chip.c
@@ -60,7 +60,7 @@ GPIOD_API void gpiod_chip_close(struct gpiod_chip *chip)
 	free(chip);
 }
 
-static int chip_read_chip_info(int fd, struct gpiochip_info *info)
+static int read_chip_info(int fd, struct gpiochip_info *info)
 {
 	int ret;
 
@@ -78,7 +78,7 @@ GPIOD_API struct gpiod_chip_info *gpiod_chip_get_info(struct gpiod_chip *chip)
 	struct gpiochip_info info;
 	int ret;
 
-	ret = chip_read_chip_info(chip->fd, &info);
+	ret = read_chip_info(chip->fd, &info);
 	if (ret < 0)
 		return NULL;
 
@@ -164,7 +164,7 @@ GPIOD_API int gpiod_chip_get_line_offset_from_name(struct gpiod_chip *chip,
 	unsigned int offset;
 	int ret;
 
-	ret = chip_read_chip_info(chip->fd, &chinfo);
+	ret = read_chip_info(chip->fd, &chinfo);
 	if (ret < 0)
 		return -1;
 
-- 
2.30.2