rtc: rtctest: Change no IRQ detection for RTC_IRQP_READ
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 21 Jun 2016 07:22:49 +0000 (00:22 -0700)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 26 Jun 2016 21:43:49 +0000 (23:43 +0200)
commit519efa98051717479ff3d0b6be996e112e7a87ff
treed9b58b7cdaa631df07249ba34f2d70bda3140846
parentcd26fca202f9a720d90e00ac2dbb7c4d0544f748
rtc: rtctest: Change no IRQ detection for RTC_IRQP_READ

A call to ioctl(..., RTC_IRQP_READ, ...) 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>
tools/testing/selftests/timers/rtctest.c