Merge branch 'bind_unbind' into driver-core-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jul 2017 10:00:15 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jul 2017 10:00:15 +0000 (12:00 +0200)
This merges the bind_unbind driver core feature into the
driver-core-next branch.  bind_unbind is a branch so that others can
pull and work off of it safely.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
drivers/base/core.c
drivers/input/keyboard/gpio_keys.c
drivers/input/misc/axp20x-pek.c
include/linux/device.h
include/linux/kobject.h
lib/kobject_uevent.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 719c155fce2084fc8e817afc007549a06eec92b5,4682e8545b5c1a702999664332e6b98c0dabe9ce..e590523ea4761425df5e112a2c2aab873dbaa90d
@@@ -52,15 -50,23 +52,17 @@@ static const char *kobject_actions[] = 
        [KOBJ_MOVE] =           "move",
        [KOBJ_ONLINE] =         "online",
        [KOBJ_OFFLINE] =        "offline",
+       [KOBJ_BIND] =           "bind",
+       [KOBJ_UNBIND] =         "unbind",
  };
  
 -/**
 - * kobject_action_type - translate action string to numeric type
 - *
 - * @buf: buffer containing the action string, newline is ignored
 - * @count: length of buffer
 - * @type: pointer to the location to store the action type
 - *
 - * Returns 0 if the action string was recognized.
 - */
 -int kobject_action_type(const char *buf, size_t count,
 -                      enum kobject_action *type)
 +static int kobject_action_type(const char *buf, size_t count,
 +                             enum kobject_action *type,
 +                             const char **args)
  {
        enum kobject_action action;
 +      size_t count_first;
 +      const char *args_start;
        int ret = -EINVAL;
  
        if (count && (buf[count-1] == '\n' || buf[count-1] == '\0'))