Merge branch 'for-33' of git://repo.or.cz/linux-kbuild
[linux-2.6-block.git] / sound / pci / hda / hda_hwdep.c
index d24328661c6a8f27a935f244d31234726fd906df..40ccb419b6e97a83bdd253a05c529ad8adfec9d2 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/compat.h>
 #include <linux/mutex.h>
 #include <linux/ctype.h>
+#include <linux/string.h>
 #include <linux/firmware.h>
 #include <sound/core.h>
 #include "hda_codec.h"
@@ -428,8 +429,7 @@ static int parse_hints(struct hda_codec *codec, const char *buf)
        char *key, *val;
        struct hda_hint *hint;
 
-       while (isspace(*buf))
-               buf++;
+       buf = skip_spaces(buf);
        if (!*buf || *buf == '#' || *buf == '\n')
                return 0;
        if (*buf == '=')
@@ -444,8 +444,7 @@ static int parse_hints(struct hda_codec *codec, const char *buf)
                return -EINVAL;
        }
        *val++ = 0;
-       while (isspace(*val))
-               val++;
+       val = skip_spaces(val);
        remove_trail_spaces(key);
        remove_trail_spaces(val);
        hint = get_hint(codec, key);