"Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com> writes: > May be we can make "int SPI_connect()" => "void SPI_connect()" and fix the doc ?
I don't see a lot of value in changing SPI_connect() in isolation. It's part of an API suite that generally expects functions to return error codes.
There was a previous thread  about getting rid of useless SPI error codes across the board, in favor of having those functions throw errors for error cases. AFAICT nobody has reviewed the proposed patch there, but maybe you'd like to?