Skip to content

Commit e68d494

Browse files
committed
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>
1 parent 7734411 commit e68d494

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

include/soc/tegra/bpmp.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ bool tegra_bpmp_mrq_is_supported(struct tegra_bpmp *bpmp, unsigned int mrq);
144144
#else
145145
static inline struct tegra_bpmp *tegra_bpmp_get(struct device *dev)
146146
{
147-
return ERR_PTR(-ENOTSUPP);
147+
return ERR_PTR(-ENODEV);
148148
}
149149

150150
static inline struct tegra_bpmp *tegra_bpmp_get_with_id(struct device *dev,
@@ -156,16 +156,19 @@ static inline struct tegra_bpmp *tegra_bpmp_get_with_id(struct device *dev,
156156
static inline void tegra_bpmp_put(struct tegra_bpmp *bpmp)
157157
{
158158
}
159+
159160
static inline int tegra_bpmp_transfer_atomic(struct tegra_bpmp *bpmp,
160161
struct tegra_bpmp_message *msg)
161162
{
162-
return -ENOTSUPP;
163+
return -ENODEV;
163164
}
165+
164166
static inline int tegra_bpmp_transfer(struct tegra_bpmp *bpmp,
165167
struct tegra_bpmp_message *msg)
166168
{
167-
return -ENOTSUPP;
169+
return -ENODEV;
168170
}
171+
169172
static inline void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel,
170173
int code, const void *data,
171174
size_t size)
@@ -177,8 +180,9 @@ static inline int tegra_bpmp_request_mrq(struct tegra_bpmp *bpmp,
177180
tegra_bpmp_mrq_handler_t handler,
178181
void *data)
179182
{
180-
return -ENOTSUPP;
183+
return -ENODEV;
181184
}
185+
182186
static inline void tegra_bpmp_free_mrq(struct tegra_bpmp *bpmp,
183187
unsigned int mrq, void *data)
184188
{

0 commit comments

Comments
 (0)