generic: routerboot sysfs: move tag_show_string()
[openwrt/staging/dedeckeh.git] / target / linux / generic / files / drivers / platform / mikrotik / routerboot.c
index 36ca90c1adeaa0d768da031bf9ac74c3b76a824e..96a100a933c9f0d29d1640023fc2c79f4bc95318 100644 (file)
@@ -175,6 +175,13 @@ static void __exit routerboot_exit(void)
        kobject_put(rb_kobj);   // recursive afaict
 }
 
+/* Common routines */
+
+ssize_t routerboot_tag_show_string(const u8 *pld, u16 pld_len, char *buf)
+{
+       return scnprintf(buf, pld_len+1, "%s\n", pld);
+}
+
 module_init(routerboot_init);
 module_exit(routerboot_exit);