Use -ENOSYS consistently
Get series with b4
b4 am 20210321163813.GS1310@bill-the-catVersions newest first
- v1 Latest0 of 6 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 6 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Use -ENOSYS consistently
Quoted 12 lines · Simon Glass
A few places use
-ENOTSUPPwhen they should use-ENOSYS. In two cases both are used. This little series tidies this up.Simon Glass (6):
usb: Return-ENOSYSwhen system call is not available
spi: Return-ENOSYSwhen system call is not available
tlv_eeprom: Return-ENOSYSwhen system call is not available
clk: Return-ENOSYSwhen system call is not available
simple-pm-bus: Use-ENOSYSfor checking missing system call
pinctrl: Return-ENOSYSwhen system call is not available
Quoted 7 lines
drivers/clk/clk-composite.c | 8 ++++---- drivers/core/simple-pm-bus.c | 4 ++-- drivers/pinctrl/pinctrl-uclass.c | 10 ++++++---- drivers/usb/gadget/udc/udc-uclass.c | 2 +- include/spi-mem.h | 2 +- include/tlv_eeprom.h | 6 +++--- 6 files changed, 17 insertions(+), 15 deletions(-)
I think we need to start this series with a doc update that makes it
clear why this is correct and when it should be used. There's two
instances of "ENOSYS" in doc/driver-model/ today and neither explains why this series is correct (which I'm sure it is). Thanks.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210321/f063b944/attachment.sig>