linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata()
@ 2013-04-05  1:47 Jingoo Han
  2013-04-05  1:47 ` [PATCH 2/7] rtc: rtc-m41t94: " Jingoo Han
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:47 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-rx4581.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-rx4581.c b/drivers/rtc/rtc-rx4581.c
index d1b88db..84eb08d 100644
--- a/drivers/rtc/rtc-rx4581.c
+++ b/drivers/rtc/rtc-rx4581.c
@@ -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;
 }
 
-- 
1.7.2.5



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

* [PATCH 2/7] rtc: rtc-m41t94: use spi_set_drvdata()
  2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
@ 2013-04-05  1:47 ` Jingoo Han
  2013-04-05  1:48 ` [PATCH 3/7] rtc: rtc-r9701: " Jingoo Han
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:47 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-m41t94.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-m41t94.c b/drivers/rtc/rtc-m41t94.c
index cf655a9..7454ef0 100644
--- a/drivers/rtc/rtc-m41t94.c
+++ b/drivers/rtc/rtc-m41t94.c
@@ -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;
 }
-- 
1.7.2.5



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

* [PATCH 3/7] rtc: rtc-r9701: use spi_set_drvdata()
  2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
  2013-04-05  1:47 ` [PATCH 2/7] rtc: rtc-m41t94: " Jingoo Han
@ 2013-04-05  1:48 ` Jingoo Han
  2013-04-05  1:48 ` [PATCH 4/7] rtc: rtc-ds3234: " Jingoo Han
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:48 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-r9701.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-r9701.c b/drivers/rtc/rtc-r9701.c
index 0adf5b5..feeedbd 100644
--- a/drivers/rtc/rtc-r9701.c
+++ b/drivers/rtc/rtc-r9701.c
@@ -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;
 }
-- 
1.7.2.5



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

* [PATCH 4/7] rtc: rtc-ds3234: use spi_set_drvdata()
  2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
  2013-04-05  1:47 ` [PATCH 2/7] rtc: rtc-m41t94: " Jingoo Han
  2013-04-05  1:48 ` [PATCH 3/7] rtc: rtc-r9701: " Jingoo Han
@ 2013-04-05  1:48 ` Jingoo Han
  2013-04-05  1:48 ` [PATCH 5/7] rtc: rtc-ds1390: " Jingoo Han
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:48 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-ds3234.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-ds3234.c b/drivers/rtc/rtc-ds3234.c
index a66efd4..ba98c0e 100644
--- a/drivers/rtc/rtc-ds3234.c
+++ b/drivers/rtc/rtc-ds3234.c
@@ -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;
 }
-- 
1.7.2.5



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

* [PATCH 5/7] rtc: rtc-ds1390: use spi_set_drvdata()
  2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
                   ` (2 preceding siblings ...)
  2013-04-05  1:48 ` [PATCH 4/7] rtc: rtc-ds3234: " Jingoo Han
@ 2013-04-05  1:48 ` Jingoo Han
  2013-04-05  1:49 ` [PATCH 6/7] rtc: rtc-m41t93: " Jingoo Han
  2013-04-05  1:49 ` [PATCH 7/7] rtc: rtc-max6902: " Jingoo Han
  5 siblings, 0 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:48 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-ds1390.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c
index f994257..11b7076 100644
--- a/drivers/rtc/rtc-ds1390.c
+++ b/drivers/rtc/rtc-ds1390.c
@@ -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) {
-- 
1.7.2.5



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

* [PATCH 6/7] rtc: rtc-m41t93: use spi_set_drvdata()
  2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
                   ` (3 preceding siblings ...)
  2013-04-05  1:48 ` [PATCH 5/7] rtc: rtc-ds1390: " Jingoo Han
@ 2013-04-05  1:49 ` Jingoo Han
  2013-04-05  1:49 ` [PATCH 7/7] rtc: rtc-max6902: " Jingoo Han
  5 siblings, 0 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:49 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-m41t93.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-m41t93.c b/drivers/rtc/rtc-m41t93.c
index cfc21a1..9707d36 100644
--- a/drivers/rtc/rtc-m41t93.c
+++ b/drivers/rtc/rtc-m41t93.c
@@ -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;
 }
-- 
1.7.2.5



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

* [PATCH 7/7] rtc: rtc-max6902: use spi_set_drvdata()
  2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
                   ` (4 preceding siblings ...)
  2013-04-05  1:49 ` [PATCH 6/7] rtc: rtc-m41t93: " Jingoo Han
@ 2013-04-05  1:49 ` Jingoo Han
  5 siblings, 0 replies; 7+ messages in thread
From: Jingoo Han @ 2013-04-05  1:49 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-max6902.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-max6902.c b/drivers/rtc/rtc-max6902.c
index 7e4491b..7730a65 100644
--- a/drivers/rtc/rtc-max6902.c
+++ b/drivers/rtc/rtc-max6902.c
@@ -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;
 }
 
-- 
1.7.2.5



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

end of thread, other threads:[~2013-04-05  1:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-05  1:47 [PATCH 1/7] rtc: rtc-rx4581: use spi_set_drvdata() Jingoo Han
2013-04-05  1:47 ` [PATCH 2/7] rtc: rtc-m41t94: " Jingoo Han
2013-04-05  1:48 ` [PATCH 3/7] rtc: rtc-r9701: " Jingoo Han
2013-04-05  1:48 ` [PATCH 4/7] rtc: rtc-ds3234: " Jingoo Han
2013-04-05  1:48 ` [PATCH 5/7] rtc: rtc-ds1390: " Jingoo Han
2013-04-05  1:49 ` [PATCH 6/7] rtc: rtc-m41t93: " Jingoo Han
2013-04-05  1:49 ` [PATCH 7/7] rtc: rtc-max6902: " Jingoo Han

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).