linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] drivers: uio_dmem_genirq: use dev_get_platdata()
@ 2013-08-30  4:11 Jingoo Han
  2013-08-30  4:13 ` [PATCH 2/3] drivers: uio_pdrv_genirq: " Jingoo Han
  2013-08-30  4:13 ` [PATCH 3/3] drivers: uio_pruss: " Jingoo Han
  0 siblings, 2 replies; 3+ messages in thread
From: Jingoo Han @ 2013-08-30  4:11 UTC (permalink / raw)
  To: 'Hans J. Koch'
  Cc: 'Greg Kroah-Hartman', linux-kernel, 'Jingoo Han'

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/uio/uio_dmem_genirq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c
index 125d0e5..1270f3b 100644
--- a/drivers/uio/uio_dmem_genirq.c
+++ b/drivers/uio/uio_dmem_genirq.c
@@ -146,7 +146,7 @@ static int uio_dmem_genirq_irqcontrol(struct uio_info *dev_info, s32 irq_on)
 
 static int uio_dmem_genirq_probe(struct platform_device *pdev)
 {
-	struct uio_dmem_genirq_pdata *pdata = pdev->dev.platform_data;
+	struct uio_dmem_genirq_pdata *pdata = dev_get_platdata(&pdev->dev);
 	struct uio_info *uioinfo = &pdata->uioinfo;
 	struct uio_dmem_genirq_platdata *priv;
 	struct uio_mem *uiomem;
-- 
1.7.10.4



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

* [PATCH 2/3] drivers: uio_pdrv_genirq: use dev_get_platdata()
  2013-08-30  4:11 [PATCH 1/3] drivers: uio_dmem_genirq: use dev_get_platdata() Jingoo Han
@ 2013-08-30  4:13 ` Jingoo Han
  2013-08-30  4:13 ` [PATCH 3/3] drivers: uio_pruss: " Jingoo Han
  1 sibling, 0 replies; 3+ messages in thread
From: Jingoo Han @ 2013-08-30  4:13 UTC (permalink / raw)
  To: 'Hans J. Koch'
  Cc: 'Greg Kroah-Hartman', linux-kernel, 'Jingoo Han'

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/uio/uio_pdrv_genirq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index 4eb8eaf..90ff17a 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -104,7 +104,7 @@ static int uio_pdrv_genirq_irqcontrol(struct uio_info *dev_info, s32 irq_on)
 
 static int uio_pdrv_genirq_probe(struct platform_device *pdev)
 {
-	struct uio_info *uioinfo = pdev->dev.platform_data;
+	struct uio_info *uioinfo = dev_get_platdata(&pdev->dev);
 	struct uio_pdrv_genirq_platdata *priv;
 	struct uio_mem *uiomem;
 	int ret = -EINVAL;
-- 
1.7.10.4



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

* [PATCH 3/3] drivers: uio_pruss: use dev_get_platdata()
  2013-08-30  4:11 [PATCH 1/3] drivers: uio_dmem_genirq: use dev_get_platdata() Jingoo Han
  2013-08-30  4:13 ` [PATCH 2/3] drivers: uio_pdrv_genirq: " Jingoo Han
@ 2013-08-30  4:13 ` Jingoo Han
  1 sibling, 0 replies; 3+ messages in thread
From: Jingoo Han @ 2013-08-30  4:13 UTC (permalink / raw)
  To: 'Hans J. Koch'
  Cc: 'Greg Kroah-Hartman', linux-kernel, 'Jingoo Han'

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/uio/uio_pruss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c
index df75346..f519da9 100644
--- a/drivers/uio/uio_pruss.c
+++ b/drivers/uio/uio_pruss.c
@@ -121,7 +121,7 @@ static int pruss_probe(struct platform_device *dev)
 	struct uio_pruss_dev *gdev;
 	struct resource *regs_prussio;
 	int ret = -ENODEV, cnt = 0, len;
-	struct uio_pruss_pdata *pdata = dev->dev.platform_data;
+	struct uio_pruss_pdata *pdata = dev_get_platdata(&dev->dev);
 
 	gdev = kzalloc(sizeof(struct uio_pruss_dev), GFP_KERNEL);
 	if (!gdev)
-- 
1.7.10.4



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

end of thread, other threads:[~2013-08-30  4:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-30  4:11 [PATCH 1/3] drivers: uio_dmem_genirq: use dev_get_platdata() Jingoo Han
2013-08-30  4:13 ` [PATCH 2/3] drivers: uio_pdrv_genirq: " Jingoo Han
2013-08-30  4:13 ` [PATCH 3/3] drivers: uio_pruss: " 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).