aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-test.c
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2024-12-17 07:13:26 +0000
committerAlexandre Belloni <[email protected]>2025-01-09 17:29:24 +0000
commit8c28c4993f117e03130a51160229bde7ad388240 (patch)
tree2fa3a3fd4096ce097f284f4f4f1cbf28b0f92dd4 /drivers/rtc/rtc-test.c
parentrtc: RTC_DRV_SPEAR should not default to y when compile-testing (diff)
downloadkernel-8c28c4993f117e03130a51160229bde7ad388240.tar.gz
kernel-8c28c4993f117e03130a51160229bde7ad388240.zip
rtc: use boolean values with device_init_wakeup()
device_init_wakeup() second argument is a bool type. Use proper boolean values when calling it to match the type and to produce unambiguous code which is easier to understand. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-test.c')
-rw-r--r--drivers/rtc/rtc-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c
index 7e0d8fb26465..a68b8c884102 100644
--- a/drivers/rtc/rtc-test.c
+++ b/drivers/rtc/rtc-test.c
@@ -132,7 +132,7 @@ static int test_probe(struct platform_device *plat_dev)
break;
default:
rtd->rtc->ops = &test_rtc_ops;
- device_init_wakeup(&plat_dev->dev, 1);
+ device_init_wakeup(&plat_dev->dev, true);
}
timer_setup(&rtd->alarm, test_rtc_alarm_handler, 0);