The spi_getdrvinfo() function gets the driver information for the low-level module. The prototype for this function is:
int spi_getdrvinfo( int fd,
spi_drvinfo_t *drvinfo );
The arguments are:
typedef struct {
uint32_t version;
char name[16]; /* Driver name */
uint32_t feature;
} spi_drvinfo_t;
The function returns EOK if the driver information is obtained successfully.