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

Commit 4fa8f96a authored by Amir Samuelov's avatar Amir Samuelov Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: spss_utils: fix test_fuse_state_show()



Remove new-line char (\n) when showing attribute.
User space app is expecting "test" or "prod" string,
without the new-line char.

Change-Id: Id44e63dab2fe68398c7b5ecdc423598ad4a27faa
Signed-off-by: default avatarAmir Samuelov <amirs@codeaurora.org>
parent 4e2a8a0f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -97,9 +97,9 @@ static ssize_t test_fuse_state_show(struct device *dev,
	}

	if (is_test_fuse_set)
		ret = snprintf(buf, PAGE_SIZE, "%s\n", "test");
		ret = snprintf(buf, PAGE_SIZE, "%s", "test");
	else
		ret = snprintf(buf, PAGE_SIZE, "%s\n", "prod");
		ret = snprintf(buf, PAGE_SIZE, "%s", "prod");

	return ret;
}
@@ -280,7 +280,7 @@ static int __init spss_init(void)
{
	int ret = 0;

	pr_info("spss-utils driver Ver 1.0 12-Sep-2016.\n");
	pr_info("spss-utils driver Ver 1.1 18-Sep-2016.\n");

	ret = platform_driver_register(&spss_driver);
	if (ret)