diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-06-21 09:22:50 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-06-26 23:43:54 +0200 |
commit | 0a553cbabd369c52b921fced5e1a1ea3e60e0e0d (patch) | |
tree | 15ec68a5e477b566914048c0bb6cf1e1c6406fba | |
parent | rtc: rtctest: Change no IRQ detection for RTC_IRQP_READ (diff) | |
download | linux-0a553cbabd369c52b921fced5e1a1ea3e60e0e0d.tar.xz linux-0a553cbabd369c52b921fced5e1a1ea3e60e0e0d.zip |
rtc: rtctest: Change no IRQ detection for RTC_IRQP_SET
A call to ioctl(..., RTC_IRQP_SET, ...) should never result in
ENOTTY. All new style RTC drivers implement it and all of the old style
drivers return EINVAL when they don't support periodic IRQs.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r-- | tools/testing/selftests/timers/rtctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/rtctest.c b/tools/testing/selftests/timers/rtctest.c index 97beadf548b0..4230d3052e5d 100644 --- a/tools/testing/selftests/timers/rtctest.c +++ b/tools/testing/selftests/timers/rtctest.c @@ -218,7 +218,7 @@ test_PIE: retval = ioctl(fd, RTC_IRQP_SET, tmp); if (retval == -1) { /* not all RTCs can change their periodic IRQ rate */ - if (errno == ENOTTY) { + if (errno == EINVAL) { fprintf(stderr, "\n...Periodic IRQ rate is fixed\n"); goto done; |