diff for duplicates of <87y5zqysom.fsf@ti.com> diff --git a/a/1.txt b/N1/1.txt index aa32b50..95b4d58 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -13,39 +13,3 @@ Sergei Shtylyov <sshtylyov@mvista.com> writes: Yes indeed, thanks. Updated patch below (only changelog changed) Kevin - - ->From e3996fdb48e6850bc3f2a383e86fe67be5796d40 Mon Sep 17 00:00:00 2001 -From: Kevin Hilman <khilman@ti.com> -Date: Thu, 21 Jul 2011 14:03:51 -0700 -Subject: [RFC/PATCH 3/7] OMAP: McBSP: use existing macros for converting - between devices - -For converting from struct device to platform_device, and from -platform_device to struct omap_device, there are existing macros. Use -them instead of manual use of container_of(). - -Signed-off-by: Kevin Hilman <khilman@ti.com> ---- - arch/arm/plat-omap/mcbsp.c | 6 +++--- - 1 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c -index 6c62af1..02199e8 100644 ---- a/arch/arm/plat-omap/mcbsp.c -+++ b/arch/arm/plat-omap/mcbsp.c -@@ -260,9 +260,9 @@ EXPORT_SYMBOL(omap_mcbsp_dma_reg_params); - #ifdef CONFIG_ARCH_OMAP3 - static struct omap_device *find_omap_device_by_dev(struct device *dev) - { -- struct platform_device *pdev = container_of(dev, -- struct platform_device, dev); -- return container_of(pdev, struct omap_device, pdev); -+ struct platform_device *pdev = to_platform_device(dev); -+ -+ return to_omap_device(pdev); - } - - static void omap_st_on(struct omap_mcbsp *mcbsp) --- -1.7.6 diff --git a/a/content_digest b/N1/content_digest index 9bfcbc7..39e681d 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,16 +1,10 @@ "ref\01311292338-11830-1-git-send-email-khilman@ti.com\0" "ref\01311292338-11830-5-git-send-email-khilman@ti.com\0" "ref\04E296DFB.3010205@ru.mvista.com\0" - "From\0Kevin Hilman <khilman@ti.com>\0" - "Subject\0Re: [RFC/PATCH 3/7] OMAP: McBSP: use existing macros for converting between devices\0" + "From\0khilman@ti.com (Kevin Hilman)\0" + "Subject\0[RFC/PATCH 3/7] OMAP: McBSP: use existing macros for converting between devices\0" "Date\0Fri, 22 Jul 2011 13:19:21 -0700\0" - "To\0Sergei Shtylyov <sshtylyov@mvista.com>\0" - "Cc\0linux-omap@vger.kernel.org" - Paul Walmsley <paul@pwsan.com> - Grant Likely <grant.likely@secretlab.ca> - G. Manjunath Kondaiah <manjugk@ti.com> - devicetree-discuss@lists.ozlabs.org - " linux-arm-kernel@lists.infradead.org\0" + "To\0linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" "Hi Sergei,\n" @@ -27,42 +21,6 @@ "\n" "Yes indeed, thanks. Updated patch below (only changelog changed)\n" "\n" - "Kevin\n" - "\n" - "\n" - ">From e3996fdb48e6850bc3f2a383e86fe67be5796d40 Mon Sep 17 00:00:00 2001\n" - "From: Kevin Hilman <khilman@ti.com>\n" - "Date: Thu, 21 Jul 2011 14:03:51 -0700\n" - "Subject: [RFC/PATCH 3/7] OMAP: McBSP: use existing macros for converting\n" - " between devices\n" - "\n" - "For converting from struct device to platform_device, and from\n" - "platform_device to struct omap_device, there are existing macros. Use\n" - "them instead of manual use of container_of().\n" - "\n" - "Signed-off-by: Kevin Hilman <khilman@ti.com>\n" - "---\n" - " arch/arm/plat-omap/mcbsp.c | 6 +++---\n" - " 1 files changed, 3 insertions(+), 3 deletions(-)\n" - "\n" - "diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c\n" - "index 6c62af1..02199e8 100644\n" - "--- a/arch/arm/plat-omap/mcbsp.c\n" - "+++ b/arch/arm/plat-omap/mcbsp.c\n" - "@@ -260,9 +260,9 @@ EXPORT_SYMBOL(omap_mcbsp_dma_reg_params);\n" - " #ifdef CONFIG_ARCH_OMAP3\n" - " static struct omap_device *find_omap_device_by_dev(struct device *dev)\n" - " {\n" - "-\tstruct platform_device *pdev = container_of(dev,\n" - "-\t\t\t\t\tstruct platform_device, dev);\n" - "-\treturn container_of(pdev, struct omap_device, pdev);\n" - "+\tstruct platform_device *pdev = to_platform_device(dev);\n" - "+\n" - "+\treturn to_omap_device(pdev);\n" - " }\n" - " \n" - " static void omap_st_on(struct omap_mcbsp *mcbsp)\n" - "-- \n" - 1.7.6 + Kevin -dbc8faddc23629f328a335ae3db0c837c0b4062549edefc09e08f05c7f5e664d +049f08f08e635932ffeea373307c2b4a4a6deb4a8b8e4623557c4318313a1344
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.