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

firmware: imx: scu: use EOPNOTSUPP

Per checkpatch.pl, "ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP"
So use EOPNOTSUPP to replace ENOTSUPP.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Peng Fan and committed by
Shawn Guo
8314aa8a 150019de

+5 -5
+5 -5
include/linux/firmware/imx/sci.h
··· 25 25 #else 26 26 static inline int imx_scu_soc_init(struct device *dev) 27 27 { 28 - return -ENOTSUPP; 28 + return -EOPNOTSUPP; 29 29 } 30 30 31 31 static inline int imx_scu_enable_general_irq_channel(struct device *dev) 32 32 { 33 - return -ENOTSUPP; 33 + return -EOPNOTSUPP; 34 34 } 35 35 36 36 static inline int imx_scu_irq_register_notifier(struct notifier_block *nb) 37 37 { 38 - return -ENOTSUPP; 38 + return -EOPNOTSUPP; 39 39 } 40 40 41 41 static inline int imx_scu_irq_unregister_notifier(struct notifier_block *nb) 42 42 { 43 - return -ENOTSUPP; 43 + return -EOPNOTSUPP; 44 44 } 45 45 46 46 static inline int imx_scu_irq_group_enable(u8 group, u32 mask, u8 enable) 47 47 { 48 - return -ENOTSUPP; 48 + return -EOPNOTSUPP; 49 49 } 50 50 #endif 51 51 #endif /* _SC_SCI_H */