From: Bartosz Golaszewski Date: Fri, 16 Dec 2022 09:02:09 +0000 (+0100) Subject: core: chip: drop the unneeded prefix from a static function X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a6014a75a260e6047912950756065f7aaeb43f13;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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;