line->info.flags = 0;
chip = gpiod_line_get_chip(line);
- fd = gpiod_chip_get_fd(chip);
+ fd = chip->fd;
status = gpio_ioctl(fd, GPIO_GET_LINEINFO_IOCTL, &line->info);
if (status < 0)
sizeof(req->consumer_label) - 1);
chip = gpiod_line_get_chip(line_bulk->lines[0]);
- fd = gpiod_chip_get_fd(chip);
+ fd = chip->fd;
status = gpio_ioctl(fd, GPIO_GET_LINEHANDLE_IOCTL, req);
if (status < 0)
req->eventflags |= GPIOEVENT_REQUEST_BOTH_EDGES;
chip = gpiod_line_get_chip(line);
- fd = gpiod_chip_get_fd(chip);
+ fd = chip->fd;
status = gpio_ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, req);
if (status < 0)
return line;
}
-int gpiod_chip_get_fd(struct gpiod_chip *chip)
-{
- return chip->fd;
-}
-
struct gpiod_chip * gpiod_line_get_chip(struct gpiod_line *line)
{
return line->chip;
struct gpiod_line *
gpiod_chip_get_line(struct gpiod_chip *chip, unsigned int offset) GPIOD_API;
-/* FIXME This shouldn't be needed. Make it private maybe? */
-int gpiod_chip_get_fd(struct gpiod_chip *chip) GPIOD_API;
-
/**
* @}
*