Skip to contentSkip to conversation

rtc: rtc-rx4581: use spi_set_drvdata()

PATCH New Jingoo Han 1 participant 7 messages Apr 5, 2013 Real time clock (RTC)

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/7 rtc: rtc-rx4581: use spi_set_drvdata()

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-rx4581.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-rx4581.c +1 -1
index d1b88db..84eb08d 100644
@@ -278,7 +278,7 @@ static int rx4581_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 	return 0;
 }
 
Signature · 1 line
1.7.2.5
author
#1 lore raw

PATCH 2/7 rtc: rtc-m41t94: use spi_set_drvdata()

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-m41t94.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-m41t94.c +1 -1
index cf655a9..7454ef0 100644
@@ -129,7 +129,7 @@ static int m41t94_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 
 	return 0;
 }
Signature · 1 line
1.7.2.5
author
#2 lore raw

PATCH 3/7 rtc: rtc-r9701: use spi_set_drvdata()

In reply to Jingoo Han

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-r9701.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-r9701.c +1 -1
index 0adf5b5..feeedbd 100644
@@ -159,7 +159,7 @@ static int r9701_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 
 	return 0;
 }
Signature · 1 line
1.7.2.5
author
#3 lore raw

PATCH 4/7 rtc: rtc-ds3234: use spi_set_drvdata()

In reply to Jingoo Han

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-ds3234.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-ds3234.c +1 -1
index a66efd4..ba98c0e 100644
@@ -151,7 +151,7 @@ static int ds3234_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 
 	return 0;
 }
Signature · 1 line
1.7.2.5
author
#4 lore raw

PATCH 5/7 rtc: rtc-ds1390: use spi_set_drvdata()

In reply to Jingoo Han

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-ds1390.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-ds1390.c +1 -1
index f994257..11b7076 100644
@@ -136,7 +136,7 @@ static int ds1390_probe(struct spi_device *spi)
 		dev_err(&spi->dev, "unable to allocate device memory\n");
 		return -ENOMEM;
 	}
-	dev_set_drvdata(&spi->dev, chip);
+	spi_set_drvdata(spi, chip);
 
 	res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp);
 	if (res != 0) {
Signature · 1 line
1.7.2.5
author
#5 lore raw

PATCH 6/7 rtc: rtc-m41t93: use spi_set_drvdata()

In reply to Jingoo Han

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-m41t93.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-m41t93.c +1 -1
index cfc21a1..9707d36 100644
@@ -189,7 +189,7 @@ static int m41t93_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 
 	return 0;
 }
Signature · 1 line
1.7.2.5
author
#6 lore raw

PATCH 7/7 rtc: rtc-max6902: use spi_set_drvdata()

In reply to Jingoo Han

Use the wrapper functions for getting and setting the driver data using spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we can directly pass a struct spi_device.

---
 drivers/rtc/rtc-max6902.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-max6902.c +1 -1
index 7e4491b..7730a65 100644
@@ -139,7 +139,7 @@ static int max6902_probe(struct spi_device *spi)
 	if (IS_ERR(rtc))
 		return PTR_ERR(rtc);
 
-	dev_set_drvdata(&spi->dev, rtc);
+	spi_set_drvdata(spi, rtc);
 	return 0;
 }
 
Signature · 1 line
1.7.2.5