summaryrefslogtreecommitdiff
path: root/Kernel/Devices/DeviceControlDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Devices/DeviceControlDevice.h')
-rw-r--r--Kernel/Devices/DeviceControlDevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Devices/DeviceControlDevice.h b/Kernel/Devices/DeviceControlDevice.h
index 8eeb0670f8..5e86a73650 100644
--- a/Kernel/Devices/DeviceControlDevice.h
+++ b/Kernel/Devices/DeviceControlDevice.h
@@ -23,9 +23,9 @@ private:
// ^CharacterDevice
virtual ErrorOr<void> ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) override;
virtual ErrorOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override;
- virtual ErrorOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return Error::from_errno(ENOTSUP); }
- virtual bool can_read(const OpenFileDescription&, u64) const override;
- virtual bool can_write(const OpenFileDescription&, u64) const override { return false; }
+ virtual ErrorOr<size_t> write(OpenFileDescription&, u64, UserOrKernelBuffer const&, size_t) override { return Error::from_errno(ENOTSUP); }
+ virtual bool can_read(OpenFileDescription const&, u64) const override;
+ virtual bool can_write(OpenFileDescription const&, u64) const override { return false; }
virtual StringView class_name() const override { return "DeviceControlDevice"sv; }
};