is there a zephyr-way in determining which type a device is, after getting a reference to it through device_get_binding?
Since a gpio device has the same signature as a flash for example it's not obvious for me how to make sure that the right device pointer is passed in a higer-level application.
Thanks in advance,
Johannes Hutter ¦ Embedded Software Developer
Workaround GmbH (ProGlove)
Friedenstr. 4 | 81671 München
Managing Director: Thomas Kirchner
HRB: 216605 | AG München