Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b92868f authored by Mayank Rana's avatar Mayank Rana Committed by ChandanaKishori Chiluveru
Browse files

USB: gadget: android: Fix checkpatch related errors



Fix checkpatch error by using snprintf() instead of sprintf().
Also fix checkpatch error by using struct midi_alsa_config *config
instead of struct midi_alsa_config* config.

Change-Id: I093a90971de0a5482a80bc0e5206ac325f11bc92
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 19bcb452
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2724,7 +2724,8 @@ static ssize_t audio_source_pcm_show(struct device *dev,
	struct audio_source_config *config = f->config;

	/* print PCM card and device numbers */
	return sprintf(buf, "%d %d\n", config->card, config->device);
	return snprintf(buf, PAGE_SIZE,
			"%d %d\n", config->card, config->device);
}

static DEVICE_ATTR(pcm, S_IRUGO, audio_source_pcm_show, NULL);
+1 −1

File changed.

Contains only whitespace changes.