Thread (40 messages) 40 messages, 9 authors, 2016-01-14

Re: [PATCH 5/6] rtc: max77620: add support for max77620/max20024 RTC driver

From: Linux Kernel <hidden>
Date: 2016-01-08 01:07:39
Also in: linux-gpio, linux-rtc, lkml

Hi,

On Thursday 07 January 2016 08:08 PM, Laxman Dewangan wrote:
Maxim Semiconductor's PMIC MAX77620/MAX20024 has on chip
RTC  module. This support for setting alarm and time.

Add RTC driver to access this chip's RTC module via RTC
APIs.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Chaitanya Bandi <redacted>
Tested-by: Venkat Reddy Talla <redacted>
---
  drivers/rtc/Kconfig        |   9 +
  drivers/rtc/Makefile       |   1 +
  drivers/rtc/rtc-max77620.c | 574 +++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 584 insertions(+)
  create mode 100644 drivers/rtc/rtc-max77620.c
(...)
+static struct platform_driver max77620_rtc_driver = {
+	.probe = max77620_rtc_probe,
+	.remove = max77620_rtc_remove,
+	.id_table = max77620_rtc_devtype,
+	.driver = {
+			.name = "max77620-rtc",
+			.owner = THIS_MODULE,
Drop this line, .owner will be populated by driver core.
+			.pm = &max77620_rtc_pm_ops,
+	},
+};
+
+module_platform_driver(max77620_rtc_driver);
+
+MODULE_DESCRIPTION("max77620 RTC driver");
+MODULE_AUTHOR("Chaitanya Bandi [off-list ref]");
+MODULE_AUTHOR("Laxman Dewangan [off-list ref]");
+MODULE_ALIAS("platform:max77620-rtc");
+MODULE_LICENSE("GPL v2");
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help