Re: [PATCH 5/5] spi: make remove callback a void function
2 Mar
2022
2 Mar
'22
9:30 a.m.
Hi!
The value returned by an spi driver's remove function is mostly ignored. (Only an error message is printed if the value is non-zero that the error is ignored.)
So change the prototype of the remove function to return no value. This way driver authors are not tempted to assume that passing an error to the upper layer is a good idea. All drivers are adapted accordingly. There is no intended change of behaviour, all callbacks were prepared to return 0 before.
Acked-by: Pavel Machek pavel@ucw.cz Pavel
987
Age (days ago)
987
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pavel Machek