Skip to content

Commit

Permalink
nfc: s3fwrn5: Change the error code
Browse files Browse the repository at this point in the history
ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP.

Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Bongsu Jeon <[email protected]>
Link: https://lore.kernel.org/r/20201117081137epcms2p84b5dd8d84ca608f44b0bb722b48f50b1@epcms2p8
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
Bongsu Jeon authored and kuba-moo committed Nov 19, 2020
1 parent 0743760 commit e76d795
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/nfc/s3fwrn5/s3fwrn5.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static inline int s3fwrn5_set_mode(struct s3fwrn5_info *info,
enum s3fwrn5_mode mode)
{
if (!info->phy_ops->set_mode)
return -ENOTSUPP;
return -EOPNOTSUPP;

info->phy_ops->set_mode(info->phy_id, mode);

Expand All @@ -54,15 +54,15 @@ static inline int s3fwrn5_set_mode(struct s3fwrn5_info *info,
static inline enum s3fwrn5_mode s3fwrn5_get_mode(struct s3fwrn5_info *info)
{
if (!info->phy_ops->get_mode)
return -ENOTSUPP;
return -EOPNOTSUPP;

return info->phy_ops->get_mode(info->phy_id);
}

static inline int s3fwrn5_set_wake(struct s3fwrn5_info *info, bool wake)
{
if (!info->phy_ops->set_wake)
return -ENOTSUPP;
return -EOPNOTSUPP;

info->phy_ops->set_wake(info->phy_id, wake);

Expand All @@ -72,7 +72,7 @@ static inline int s3fwrn5_set_wake(struct s3fwrn5_info *info, bool wake)
static inline int s3fwrn5_write(struct s3fwrn5_info *info, struct sk_buff *skb)
{
if (!info->phy_ops->write)
return -ENOTSUPP;
return -EOPNOTSUPP;

return info->phy_ops->write(info->phy_id, skb);
}
Expand Down

0 comments on commit e76d795

Please sign in to comment.