summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-30 08:57:01 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-30 08:57:01 +0200
commit8f45a259fc9f8180b366cbaccac1af6d368e3b3a (patch)
tree5045baec395404f39728611190925f4ce39c2ae4 /Kernel/Devices
parentdd696e7c75c5fb630d10d0ce37e53d88fecb58a0 (diff)
downloadserenity-8f45a259fc9f8180b366cbaccac1af6d368e3b3a.zip
ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/PATAChannel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Devices/PATAChannel.cpp b/Kernel/Devices/PATAChannel.cpp
index 7e24db3284..4d78562a8d 100644
--- a/Kernel/Devices/PATAChannel.cpp
+++ b/Kernel/Devices/PATAChannel.cpp
@@ -207,9 +207,9 @@ void PATAChannel::detect_disks()
ByteBuffer wbuf = ByteBuffer::create_uninitialized(512);
ByteBuffer bbuf = ByteBuffer::create_uninitialized(512);
- u8* b = bbuf.pointer();
- u16* w = (u16*)wbuf.pointer();
- const u16* wbufbase = (u16*)wbuf.pointer();
+ u8* b = bbuf.data();
+ u16* w = (u16*)wbuf.data();
+ const u16* wbufbase = (u16*)wbuf.data();
for (u32 i = 0; i < 256; ++i) {
u16 data = IO::in16(m_io_base + ATA_REG_DATA);
@@ -228,7 +228,7 @@ void PATAChannel::detect_disks()
kprintf(
"PATAChannel: Name=\"%s\", C/H/Spt=%u/%u/%u\n",
- bbuf.pointer() + 54,
+ bbuf.data() + 54,
cyls,
heads,
spt);