Re: [PATCH v4 0/7] net: use platform_{get,set}_drvdata()

2013-08-20 Thread David Miller
From: Libo Chen Date: Mon, 19 Aug 2013 19:58:17 +0800 > > Use the wrapper functions for getting and setting the driver data using > platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, > so we can directly pass a struct platform_device. > > changelog v4: > remove modi

[PATCH v4 2/7] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &ofdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen --- drivers/net/ethernet/freescale/ucc_geth.c |3 +-- 1 files changed,

[PATCH v4 0/7] net: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
ve changelog v3: remove modify about dev_set_drvdata() changelog v2: this version add modify record about dev_set_drvdata(). Libo Chen (7): net: fsl_pq_mdio: use platform_{get,set}_drvdata() net: ucc_geth: use platform_{get,set}_drvdata() net: fec_mpc52xx_phy: use platform_{g

Re: [PATCH v3 0/7] net: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
On 2013/8/16 6:39, David Miller wrote: > From: David Miller > Date: Thu, 15 Aug 2013 15:23:59 -0700 (PDT) > >> From: Libo Chen >> Date: Thu, 15 Aug 2013 21:01:17 +0800 >> >>> Use the wrapper functions for getting and setting the driver data using >>> platform_device instead of using dev_{get,set

Re: [PATCH v3 0/7] net: use platform_{get,set}_drvdata()

2013-08-15 Thread Sergei Shtylyov
On 08/16/2013 02:51 AM, Sergei Shtylyov wrote: From: Libo Chen Date: Thu, 15 Aug 2013 21:01:17 +0800 Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_dev

Re: [PATCH v3 0/7] net: use platform_{get,set}_drvdata()

2013-08-15 Thread Sergei Shtylyov
Hello. On 08/16/2013 02:39 AM, David Miller wrote: From: Libo Chen Date: Thu, 15 Aug 2013 21:01:17 +0800 Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platfor

Re: [PATCH v3 0/7] net: use platform_{get,set}_drvdata()

2013-08-15 Thread David Miller
From: David Miller Date: Thu, 15 Aug 2013 15:23:59 -0700 (PDT) > From: Libo Chen > Date: Thu, 15 Aug 2013 21:01:17 +0800 > >> Use the wrapper functions for getting and setting the driver data using >> platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, >> so we can directl

Re: [PATCH v3 0/7] net: use platform_{get,set}_drvdata()

2013-08-15 Thread David Miller
From: Libo Chen Date: Thu, 15 Aug 2013 21:01:17 +0800 > Use the wrapper functions for getting and setting the driver data using > platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, > so we can directly pass a struct platform_device. > > changelog v3: > remove modify

[PATCH v3 2/7] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &ofdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen --- drivers/net/ethernet/freescale/ucc_geth.c |3 +-- 1 files changed,

[PATCH v3 0/7] net: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
ion add modify record about dev_set_drvdata(). Libo Chen (7): net: fsl_pq_mdio: use platform_{get,set}_drvdata() net: ucc_geth: use platform_{get,set}_drvdata() net: fec_mpc52xx_phy: use platform_{get,set}_drvdata() net: sunbmac: use platform_{get,set}_drvdata() net: sunhme: use platform_{

Re: [PATCH RESEND 0/8] use platform_{get,set}_drvdata()

2013-08-14 Thread Sergei Shtylyov
On 08/14/2013 07:36 AM, Libo Chen wrote: We can use the wrapper functions platform_{get,set}_drvdata() instead of dev_{get,set}_drvdata() with &pdev->dev, it is convenient for user. Also, unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after devi

[PATCH RESEND 2/8] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
We can use the wrapper functions platform_{get,set}_drvdata() instead of dev_{get,set}_drvdata() with &ofdev->dev, it is convenient for user. Also, unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-of

[PATCH RESEND 0/8] use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
angelog: this version add modify record about dev_set_drvdata(). Libo Chen (8): net: fsl_pq_mdio: use platform_{get,set}_drvdata() net: ucc_geth: use platform_{get,set}_drvdata() net: fec_mpc52xx_phy: use platform_{get,set}_drvdata() net: fs_enet: remove unnecessary dev_set_drvdata(

Re: [PATCH 4/8] net: fs_enet: use platform_{get,set}_drvdata()

2013-08-12 Thread Sergei Shtylyov
On 08/12/2013 05:24 PM, Libo Chen wrote: Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen --- .../net/ethernet/freesca

use platform_{get,set}_drvdata()

2013-08-12 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Libo Chen (8): net: fsl_pq_mdio: use platform_{get,set}_drvdata() net: ucc_geth: use pl

[PATCH 4/8] net: fs_enet: use platform_{get,set}_drvdata()

2013-08-12 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen --- .../net/ethernet/freescale/fs_enet/fs_enet-main.c |1 - 1 files ch

[PATCH 2/8] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-12 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen --- drivers/net/ethernet/freescale/ucc_geth.c |4 +--- 1 files changed,