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.

soc/tegra: bpmp: Use ENODEV instead of ENOTSUPP

ENOTSUPP is not a SUSV4 error code and checkpatch will warn about it.
It is also not very descriptive in the context of BPMP, so use the
ENODEV error code instead. For the stub implementations this is a more
accurate description of what the failure is.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+8 -4
+8 -4
include/soc/tegra/bpmp.h
··· 144 144 #else 145 145 static inline struct tegra_bpmp *tegra_bpmp_get(struct device *dev) 146 146 { 147 - return ERR_PTR(-ENOTSUPP); 147 + return ERR_PTR(-ENODEV); 148 148 } 149 149 150 150 static inline struct tegra_bpmp *tegra_bpmp_get_with_id(struct device *dev, ··· 156 156 static inline void tegra_bpmp_put(struct tegra_bpmp *bpmp) 157 157 { 158 158 } 159 + 159 160 static inline int tegra_bpmp_transfer_atomic(struct tegra_bpmp *bpmp, 160 161 struct tegra_bpmp_message *msg) 161 162 { 162 - return -ENOTSUPP; 163 + return -ENODEV; 163 164 } 165 + 164 166 static inline int tegra_bpmp_transfer(struct tegra_bpmp *bpmp, 165 167 struct tegra_bpmp_message *msg) 166 168 { 167 - return -ENOTSUPP; 169 + return -ENODEV; 168 170 } 171 + 169 172 static inline void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel, 170 173 int code, const void *data, 171 174 size_t size) ··· 180 177 tegra_bpmp_mrq_handler_t handler, 181 178 void *data) 182 179 { 183 - return -ENOTSUPP; 180 + return -ENODEV; 184 181 } 182 + 185 183 static inline void tegra_bpmp_free_mrq(struct tegra_bpmp *bpmp, 186 184 unsigned int mrq, void *data) 187 185 {