Hi Greg,
You are right. The \n additions were a mistake on my part — the original sprintf calls did not include \n and I should not have changed the output behavior in the same patch.
I will send a v4 that does a pure mechanical conversion from sprintf to sysfs_emit with no change in output, keeping the format strings identical to the originals.
Thank you for the review.
Shubham