Loading drivers/rtc/rtc-da9063.c +6 −3 Original line number Diff line number Diff line Loading @@ -464,11 +464,14 @@ static int da9063_rtc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, rtc); rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, DA9063_DRVNAME_RTC, &da9063_rtc_ops, THIS_MODULE); rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); if (IS_ERR(rtc->rtc_dev)) return PTR_ERR(rtc->rtc_dev); rtc->rtc_dev->ops = &da9063_rtc_ops; rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; rtc->rtc_dev->range_max = RTC_TIMESTAMP_END_2063; da9063_data_to_tm(data, &rtc->alarm_time, rtc); rtc->rtc_sync = false; Loading @@ -481,7 +484,7 @@ static int da9063_rtc_probe(struct platform_device *pdev) dev_err(&pdev->dev, "Failed to request ALARM IRQ %d: %d\n", irq_alarm, ret); return ret; return rtc_register_device(rtc->rtc_dev); } static struct platform_driver da9063_rtc_driver = { Loading include/linux/rtc.h +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ struct rtc_device { /* useful timestamps */ #define RTC_TIMESTAMP_BEGIN_1900 -2208989361LL /* 1900-01-01 00:00:00 */ #define RTC_TIMESTAMP_BEGIN_2000 946684800LL /* 2000-01-01 00:00:00 */ #define RTC_TIMESTAMP_END_2063 2966371199LL /* 2063-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_2099 4102444799LL /* 2099-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_9999 253402300799LL /* 9999-12-31 23:59:59 */ Loading Loading
drivers/rtc/rtc-da9063.c +6 −3 Original line number Diff line number Diff line Loading @@ -464,11 +464,14 @@ static int da9063_rtc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, rtc); rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, DA9063_DRVNAME_RTC, &da9063_rtc_ops, THIS_MODULE); rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); if (IS_ERR(rtc->rtc_dev)) return PTR_ERR(rtc->rtc_dev); rtc->rtc_dev->ops = &da9063_rtc_ops; rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; rtc->rtc_dev->range_max = RTC_TIMESTAMP_END_2063; da9063_data_to_tm(data, &rtc->alarm_time, rtc); rtc->rtc_sync = false; Loading @@ -481,7 +484,7 @@ static int da9063_rtc_probe(struct platform_device *pdev) dev_err(&pdev->dev, "Failed to request ALARM IRQ %d: %d\n", irq_alarm, ret); return ret; return rtc_register_device(rtc->rtc_dev); } static struct platform_driver da9063_rtc_driver = { Loading
include/linux/rtc.h +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ struct rtc_device { /* useful timestamps */ #define RTC_TIMESTAMP_BEGIN_1900 -2208989361LL /* 1900-01-01 00:00:00 */ #define RTC_TIMESTAMP_BEGIN_2000 946684800LL /* 2000-01-01 00:00:00 */ #define RTC_TIMESTAMP_END_2063 2966371199LL /* 2063-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_2099 4102444799LL /* 2099-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_9999 253402300799LL /* 9999-12-31 23:59:59 */ Loading