Skip to content

Commit

Permalink
asus-wmi: drop to_platform_driver macro
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
  • Loading branch information
Geliang Tang authored and Darren Hart committed Jan 20, 2016
1 parent ecc83e5 commit f5b3f66
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit f5b3f66

Please sign in to comment.