Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 1386cd5

Browse files
committed
Remove reference to enif_line_info
1 parent 2fa9d1f commit 1386cd5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/gpio_chip.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void chip_line_handle_close(struct gpio_chip_line_handle *handle) {
6060
close(handle->handle_fd);
6161
}
6262

63-
int chip_get_line_info(struct gpio_chip *chip, int offset, struct gpio_chip_line_info *enif_line_info)
63+
int chip_get_line_info(struct gpio_chip *chip, int offset, struct gpio_chip_line_info *line_info)
6464
{
6565
struct gpioline_info info;
6666

@@ -73,16 +73,16 @@ int chip_get_line_info(struct gpio_chip *chip, int offset, struct gpio_chip_line
7373
if (rv < 0)
7474
return -1;
7575

76-
enif_line_info->direction = info.flags & GPIOLINE_FLAG_IS_OUT
76+
line_info->direction = info.flags & GPIOLINE_FLAG_IS_OUT
7777
? GPIO_CHIP_LINE_OUTPUT
7878
: GPIO_CHIP_LINE_INPUT;
7979

80-
enif_line_info->active_low = info.flags & GPIOLINE_FLAG_ACTIVE_LOW
80+
line_info->active_low = info.flags & GPIOLINE_FLAG_ACTIVE_LOW
8181
? GPIO_CHIP_ACTIVE_LOW
8282
: GPIO_CHIP_ACTIVE_HIGH;
8383

84-
strncpy(enif_line_info->name, info.name, sizeof(enif_line_info->name));
85-
strncpy(enif_line_info->consumer, info.consumer, sizeof(enif_line_info->consumer));
84+
strncpy(line_info->name, info.name, sizeof(line_info->name));
85+
strncpy(line_info->consumer, info.consumer, sizeof(line_info->consumer));
8686

8787
return 0;
8888
}

0 commit comments

Comments
 (0)