Message ID | 20240529-feature_poe_power_cap-v1-1-0c4b1d5953b8@bootlin.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [1/8] net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP | expand |
On Wed, May 29, 2024 at 04:09:28PM +0200, Kory Maincent wrote: > From: "Kory Maincent (Dent Project)" <kory.maincent@bootlin.com> > > ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by > checkpatch script. > > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/include/linux/pse-pd/pse.h b/include/linux/pse-pd/pse.h index 6d07c95dabb9..6eec24ffa866 100644 --- a/include/linux/pse-pd/pse.h +++ b/include/linux/pse-pd/pse.h @@ -167,14 +167,14 @@ static inline int pse_ethtool_get_status(struct pse_control *psec, struct netlink_ext_ack *extack, struct pse_control_status *status) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline int pse_ethtool_set_config(struct pse_control *psec, struct netlink_ext_ack *extack, const struct pse_control_config *config) { - return -ENOTSUPP; + return -EOPNOTSUPP; } static inline bool pse_has_podl(struct pse_control *psec)