Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nfc: s3fwrn5: Change the error code

ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
Link: https://lore.kernel.org/r/20201117081137epcms2p84b5dd8d84ca608f44b0bb722b48f50b1@epcms2p8
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Bongsu Jeon and committed by
Jakub Kicinski
e76d795e 07437600

+4 -4
+4 -4
drivers/nfc/s3fwrn5/s3fwrn5.h
··· 44 44 enum s3fwrn5_mode mode) 45 45 { 46 46 if (!info->phy_ops->set_mode) 47 - return -ENOTSUPP; 47 + return -EOPNOTSUPP; 48 48 49 49 info->phy_ops->set_mode(info->phy_id, mode); 50 50 ··· 54 54 static inline enum s3fwrn5_mode s3fwrn5_get_mode(struct s3fwrn5_info *info) 55 55 { 56 56 if (!info->phy_ops->get_mode) 57 - return -ENOTSUPP; 57 + return -EOPNOTSUPP; 58 58 59 59 return info->phy_ops->get_mode(info->phy_id); 60 60 } ··· 62 62 static inline int s3fwrn5_set_wake(struct s3fwrn5_info *info, bool wake) 63 63 { 64 64 if (!info->phy_ops->set_wake) 65 - return -ENOTSUPP; 65 + return -EOPNOTSUPP; 66 66 67 67 info->phy_ops->set_wake(info->phy_id, wake); 68 68 ··· 72 72 static inline int s3fwrn5_write(struct s3fwrn5_info *info, struct sk_buff *skb) 73 73 { 74 74 if (!info->phy_ops->write) 75 - return -ENOTSUPP; 75 + return -EOPNOTSUPP; 76 76 77 77 return info->phy_ops->write(info->phy_id, skb); 78 78 }