diff options
author | Amir Samuelov <amirs@codeaurora.org> | 2016-09-18 17:51:04 +0300 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-18 07:53:55 -0700 |
commit | 4fa8f96ae60cb8149a74254329c9184b4146c0bb (patch) | |
tree | 755d9783bd805e12beccdf5efe88bbc321fd1041 | |
parent | 4e2a8a0fa1c78712904312e13ef33d02be78d421 (diff) |
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>
-rw-r--r-- | drivers/soc/qcom/spss_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/qcom/spss_utils.c b/drivers/soc/qcom/spss_utils.c index 9f799dfd9003..e54819b4837b 100644 --- a/drivers/soc/qcom/spss_utils.c +++ b/drivers/soc/qcom/spss_utils.c @@ -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) |