Home
last modified time | relevance | path

Searched refs:ljca_gpio (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpio/
H A Dgpio-ljca.c77 static int ljca_gpio_config(struct ljca_gpio_dev *ljca_gpio, u8 gpio_id, in ljca_gpio_config() argument
81 (struct ljca_gpio_packet *)ljca_gpio->obuf; in ljca_gpio_config()
84 mutex_lock(&ljca_gpio->trans_lock); in ljca_gpio_config()
86 packet->item[0].value = config | ljca_gpio->connect_mode[gpio_id]; in ljca_gpio_config()
89 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_CONFIG, (u8 *)packet, in ljca_gpio_config()
91 mutex_unlock(&ljca_gpio->trans_lock); in ljca_gpio_config()
96 static int ljca_gpio_read(struct ljca_gpio_dev *ljca_gpio, u8 gpio_id) in ljca_gpio_read() argument
99 (struct ljca_gpio_packet *)ljca_gpio->ibuf; in ljca_gpio_read()
101 (struct ljca_gpio_packet *)ljca_gpio->obuf; in ljca_gpio_read()
104 mutex_lock(&ljca_gpio->trans_lock); in ljca_gpio_read()
[all …]