mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] asus-wmi: drop to_platform_driver macro
@ 2015-12-22 14:16 Geliang Tang
  2015-12-22 21:01 ` Darren Hart
  0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2015-12-22 14:16 UTC (permalink / raw)
  To: Corentin Chary, Darren Hart
  Cc: Geliang Tang, acpi4asus-user, platform-driver-x86, linux-kernel

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



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

end of thread, other threads:[~2015-12-22 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-22 14:16 [PATCH] asus-wmi: drop to_platform_driver macro Geliang Tang
2015-12-22 21:01 ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®