aboutsummaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorShen Lichuan <[email protected]>2024-08-29 21:10:51 +0800
committerBartosz Golaszewski <[email protected]>2024-09-02 11:45:05 +0200
commit1882e769362b8e4ef68fd30a05295f5eedf5c54a (patch)
treeb535480140c43cd1b0dd2db0060072165640486b /rust
parentc4a315eaf8eff0d3234600e13db7e7c71c0b3405 (diff)
gpio: stmpe: Simplify with dev_err_probe()
Use dev_err_probe() to simplify the error path and unify a message template. Using this helper is totally fine even if err is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_err() is the standardized format of the error code, it being emitted symbolically and the fact that the error code is returned which allows more compact error paths. Signed-off-by: Shen Lichuan <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions