diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-04-02 13:50:41 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-04-02 13:50:59 -0400 |
commit | bc334cb61b9ee6e85b9bb01519989a3ae8fe03f6 (patch) | |
tree | 34424a812537fe11beeee727b30b19c67193fe36 /sound/core/init.c | |
parent | 5607dddbfca774fb38bffadcb077fe03aa4ac5c6 (diff) | |
parent | b44d419b98fae759b4f746186b1d1c8d01d962f2 (diff) |
Merge branch 'for-next' into for-linus
Preparation for 4.17 merge.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index 4fa5dd955740..79b4df1c1dc7 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -670,7 +670,7 @@ card_id_show_attr(struct device *dev, | |||
670 | struct device_attribute *attr, char *buf) | 670 | struct device_attribute *attr, char *buf) |
671 | { | 671 | { |
672 | struct snd_card *card = container_of(dev, struct snd_card, card_dev); | 672 | struct snd_card *card = container_of(dev, struct snd_card, card_dev); |
673 | return snprintf(buf, PAGE_SIZE, "%s\n", card->id); | 673 | return scnprintf(buf, PAGE_SIZE, "%s\n", card->id); |
674 | } | 674 | } |
675 | 675 | ||
676 | static ssize_t | 676 | static ssize_t |
@@ -710,7 +710,7 @@ card_number_show_attr(struct device *dev, | |||
710 | struct device_attribute *attr, char *buf) | 710 | struct device_attribute *attr, char *buf) |
711 | { | 711 | { |
712 | struct snd_card *card = container_of(dev, struct snd_card, card_dev); | 712 | struct snd_card *card = container_of(dev, struct snd_card, card_dev); |
713 | return snprintf(buf, PAGE_SIZE, "%i\n", card->number); | 713 | return scnprintf(buf, PAGE_SIZE, "%i\n", card->number); |
714 | } | 714 | } |
715 | 715 | ||
716 | static DEVICE_ATTR(number, S_IRUGO, card_number_show_attr, NULL); | 716 | static DEVICE_ATTR(number, S_IRUGO, card_number_show_attr, NULL); |