rtc: rtc-rx4581: use spi_set_drvdata()
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
@@ -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
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
@@ -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
PATCH 3/7 rtc: rtc-r9701: use spi_set_drvdata()
In reply to Jingoo HanUse 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
@@ -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
PATCH 4/7 rtc: rtc-ds3234: use spi_set_drvdata()
In reply to Jingoo HanUse 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
@@ -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
PATCH 5/7 rtc: rtc-ds1390: use spi_set_drvdata()
In reply to Jingoo HanUse 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
@@ -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
PATCH 6/7 rtc: rtc-m41t93: use spi_set_drvdata()
In reply to Jingoo HanUse 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
@@ -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
PATCH 7/7 rtc: rtc-max6902: use spi_set_drvdata()
In reply to Jingoo HanUse 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
@@ -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