linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v11 1/4] rtc: ds1307: fix data pointer to m41t0
@ 2018-07-25 17:26 Giulio Benetti
  2018-07-25 17:26 ` [PATCH v11 2/4] rtc: ds1307: support m41t11 variant Giulio Benetti
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Giulio Benetti @ 2018-07-25 17:26 UTC (permalink / raw)
  To: alexandre.belloni
  Cc: a.zummo, andy.shevchenko, robh, linux-rtc, linux-kernel, Giulio Benetti

data field points to m41t00, instead it should point to m41t0.
Driver works correctly because on both cases(m41t0 and m41t00) chip_desc
are equal.

Point to right enum m41t0 instead of m41t00.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-ds1307.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index e9ec4160d7f6..aa4a161bae98 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -299,7 +299,7 @@ static const struct of_device_id ds1307_of_match[] = {
 	},
 	{
 		.compatible = "st,m41t0",
-		.data = (void *)m41t00
+		.data = (void *)m41t0
 	},
 	{
 		.compatible = "st,m41t00",
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-19 22:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 17:26 [PATCH v11 1/4] rtc: ds1307: fix data pointer to m41t0 Giulio Benetti
2018-07-25 17:26 ` [PATCH v11 2/4] rtc: ds1307: support m41t11 variant Giulio Benetti
2018-07-25 17:26 ` [PATCH v11 3/4] rtc: ds1307: add offset sysfs for mt41txx chips Giulio Benetti
2018-09-19 17:05   ` Alexandre Belloni
2018-07-25 17:26 ` [PATCH v11 4/4] rtc: ds1307: add frequency_test_enable sysfs attribute to check tick on m41txx Giulio Benetti
2018-09-19 17:06   ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).