From 9e41b36082792b25577e27f0217884684e17e196 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Tue, 23 Aug 2011 13:38:29 +0200 Subject: [PATCH] compat: add PMSG_IS_AUTO Signed-off-by: Hauke Mehrtens --- include/linux/compat-3.2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat-3.2.h b/include/linux/compat-3.2.h index 9cba4614f2e6..d10495cc17a6 100644 --- a/include/linux/compat-3.2.h +++ b/include/linux/compat-3.2.h @@ -22,6 +22,8 @@ #define br_port_exists(dev) (dev->br_port) #endif +#define PMSG_IS_AUTO(msg) (((msg).event & PM_EVENT_AUTO) != 0) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)) */ #endif /* LINUX_3_2_COMPAT_H */ -- 2.30.2