mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
gpio: cdev: return EOPNOTSUPP when HTE is unavailable
Map hte_ts_get() -ENODEV to -EOPNOTSUPP so userspace sees the same errno as when CONFIG_HTE is disabled or EVENT_CLOCK_HTE is unsupported. Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com> Link: https://patch.msgid.link/20260831152306.166630-2-ivanrwcm25@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
d5bc046876
commit
cf176c1154
|
|
@ -715,6 +715,8 @@ static int hte_edge_setup(struct line *line, u64 eflags)
|
|||
line->desc);
|
||||
|
||||
ret = hte_ts_get(NULL, hdesc, 0);
|
||||
if (ret == -ENODEV)
|
||||
return -EOPNOTSUPP;
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user