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>
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;
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;
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;