Merge branch 'for-6.10/hid-sysfs-emit' into for-linus
[linux-2.6-block.git] / drivers / hid / hid-roccat-koneplus.c
index 22b895436a7ca8690b254535620d8ba96c4f08bf..8ccb3b14a1a9e08fc08c71f7c13324afce1f1008 100644 (file)
@@ -242,7 +242,7 @@ static ssize_t koneplus_sysfs_show_actual_profile(struct device *dev,
 {
        struct koneplus_device *koneplus =
                        hid_get_drvdata(dev_get_drvdata(dev->parent->parent));
-       return snprintf(buf, PAGE_SIZE, "%d\n", koneplus->actual_profile);
+       return sysfs_emit(buf, "%d\n", koneplus->actual_profile);
 }
 
 static ssize_t koneplus_sysfs_set_actual_profile(struct device *dev,
@@ -309,7 +309,7 @@ static ssize_t koneplus_sysfs_show_firmware_version(struct device *dev,
                        &info, KONEPLUS_SIZE_INFO);
        mutex_unlock(&koneplus->koneplus_lock);
 
-       return snprintf(buf, PAGE_SIZE, "%d\n", info.firmware_version);
+       return sysfs_emit(buf, "%d\n", info.firmware_version);
 }
 static DEVICE_ATTR(firmware_version, 0440,
                   koneplus_sysfs_show_firmware_version, NULL);