I have a number of USB/TTL adapters, based on CP2102N, which have four GPIO lines.
I can open one of the serial devices by
/dev/ttyUSB0, and the related GPIO lines are controlled by
I need to make sure I am always modifying the right device and I need a way to figure out the relation either by querying
/dev/ttyUSB0 resulting in ->
/dev/gpiochip1, or by querying
/dev/gpiochip1 resulting in ->
How do I do that? I don't see anything in
libgpiod that does this.