compat: add missing platform devid constants
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 13 Feb 2013 18:23:13 +0000 (19:23 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 13 Feb 2013 19:56:56 +0000 (20:56 +0100)
They are both set to none and will result in no id being added to the
device.

This is a backport of:

commit 689ae231afbac8979f96100b372a5a73458baaa9
Author: Jean Delvare <khali@linux-fr.org>
Date:   Fri Jul 27 22:14:59 2012 +0200

    platform: Add support for automatic device IDs

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/compat-3.7.h

index 6b1d2cfad3b7dde64f56ebe049e39d8dfd197beb..dd05e00c5e7e7c2ddf8c45e9bea377f82b250ee0 100644 (file)
@@ -197,6 +197,9 @@ static inline s64 nla_get_s64(struct nlattr *nla)
        return tmp;
 }
 
+#define PLATFORM_DEVID_NONE    (-1)
+#define PLATFORM_DEVID_AUTO    (-1)
+
 #else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,7,0)) */
 #define netlink_notify_portid(__notify) (__notify->portid)
 #define genl_info_snd_portid(__genl_info) (__genl_info->snd_portid)