Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1296802 > unrolled thread
| Started by | Geliang Tang <geliangtang@163.com> |
|---|---|
| First post | 2015-12-22 15:20 +0100 |
| Last post | 2015-12-22 22:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] asus-wmi: drop to_platform_driver macro Geliang Tang <geliangtang@163.com> - 2015-12-22 15:20 +0100
Re: [PATCH] asus-wmi: drop to_platform_driver macro Darren Hart <dvhart@infradead.org> - 2015-12-22 22:10 +0100
| From | Geliang Tang <geliangtang@163.com> |
|---|---|
| Date | 2015-12-22 15:20 +0100 |
| Subject | [PATCH] asus-wmi: drop to_platform_driver macro |
| Message-ID | <qIvXc-50w-1@gated-at.bofh.it> |
to_platform_driver has been defined in platform_device.h, so drop
this repetitive macro in asus-wmi.c.
Signed-off-by: Geliang Tang <geliangtang@163.com>
---
drivers/platform/x86/asus-wmi.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index f96f7b8..a96630d 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -56,9 +56,6 @@ MODULE_AUTHOR("Corentin Chary <corentin.chary@gmail.com>, "
MODULE_DESCRIPTION("Asus Generic WMI Driver");
MODULE_LICENSE("GPL");
-#define to_platform_driver(drv) \
- (container_of((drv), struct platform_driver, driver))
-
#define to_asus_wmi_driver(pdrv) \
(container_of((pdrv), struct asus_wmi_driver, platform_driver))
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Date | 2015-12-22 22:10 +0100 |
| Message-ID | <qIClX-DG-7@gated-at.bofh.it> |
| In reply to | #1296802 |
On Tue, Dec 22, 2015 at 10:16:13PM +0800, Geliang Tang wrote: > to_platform_driver has been defined in platform_device.h, so drop > this repetitive macro in asus-wmi.c. > > Signed-off-by: Geliang Tang <geliangtang@163.com> Thanks, applied. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web