diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-19 16:24:59 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-07-21 11:56:18 +0200 |
commit | b785a492c6eef578520594d5c4d6e9f2cb47cbeb (patch) | |
tree | 35a3c156036348e31b4a4b95f8de64d7f89f8f78 /sound/pci | |
parent | 60ea8ca21b4584cebb8163879b50ab3d941090bf (diff) | |
download | kernel_goldelico_gta04-b785a492c6eef578520594d5c4d6e9f2cb47cbeb.zip kernel_goldelico_gta04-b785a492c6eef578520594d5c4d6e9f2cb47cbeb.tar.gz kernel_goldelico_gta04-b785a492c6eef578520594d5c4d6e9f2cb47cbeb.tar.bz2 |
ALSA: replace strict_strto*() with kstrto*()
The usage of strict_strto*() is not preferred, because
strict_strto*() is obsolete. Thus, kstrto*() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_hwdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c index ce67608..fe0bda1 100644 --- a/sound/pci/hda/hda_hwdep.c +++ b/sound/pci/hda/hda_hwdep.c @@ -295,7 +295,7 @@ static ssize_t type##_store(struct device *dev, \ struct snd_hwdep *hwdep = dev_get_drvdata(dev); \ struct hda_codec *codec = hwdep->private_data; \ unsigned long val; \ - int err = strict_strtoul(buf, 0, &val); \ + int err = kstrtoul(buf, 0, &val); \ if (err < 0) \ return err; \ codec->type = val; \ @@ -654,7 +654,7 @@ int snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) p = snd_hda_get_hint(codec, key); if (!p) ret = -ENOENT; - else if (strict_strtoul(p, 0, &val)) + else if (kstrtoul(p, 0, &val)) ret = -EINVAL; else { *valp = val; @@ -751,7 +751,7 @@ static void parse_##name##_mode(char *buf, struct hda_bus *bus, \ struct hda_codec **codecp) \ { \ unsigned long val; \ - if (!strict_strtoul(buf, 0, &val)) \ + if (!kstrtoul(buf, 0, &val)) \ (*codecp)->name = val; \ } |