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: Amir Samuelov <amirs@codeaurora.org>
This commit is contained in:
parent
4e2a8a0fa1
commit
4fa8f96ae6
1 changed files with 3 additions and 3 deletions
|
@ -97,9 +97,9 @@ static ssize_t test_fuse_state_show(struct device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_test_fuse_set)
|
if (is_test_fuse_set)
|
||||||
ret = snprintf(buf, PAGE_SIZE, "%s\n", "test");
|
ret = snprintf(buf, PAGE_SIZE, "%s", "test");
|
||||||
else
|
else
|
||||||
ret = snprintf(buf, PAGE_SIZE, "%s\n", "prod");
|
ret = snprintf(buf, PAGE_SIZE, "%s", "prod");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -280,7 +280,7 @@ static int __init spss_init(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
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);
|
ret = platform_driver_register(&spss_driver);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Reference in a new issue