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:
Iván Ezequiel Rodriguez 2026-08-31 12:23:06 -03:00 committed by Bartosz Golaszewski
parent d5bc046876
commit cf176c1154

View File

@ -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;