mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
Kernel: Fix const-correctness of PCI::DeviceIdentifier usage
This commit is contained in:
parent
053afbf2d1
commit
68c9781299
2 changed files with 4 additions and 4 deletions
|
@ -16,14 +16,14 @@ namespace Kernel {
|
|||
class PCIDeviceSysFSDirectory final : public SysFSDirectory {
|
||||
public:
|
||||
static NonnullLockRefPtr<PCIDeviceSysFSDirectory> create(SysFSDirectory const&, PCI::DeviceIdentifier const&);
|
||||
PCI::DeviceIdentifier& device_identifier() const { return *m_device_identifier; }
|
||||
PCI::DeviceIdentifier const& device_identifier() const { return *m_device_identifier; }
|
||||
|
||||
virtual StringView name() const override { return m_device_directory_name->view(); }
|
||||
|
||||
private:
|
||||
PCIDeviceSysFSDirectory(NonnullOwnPtr<KString> device_directory_name, SysFSDirectory const&, PCI::DeviceIdentifier const&);
|
||||
|
||||
NonnullRefPtr<PCI::DeviceIdentifier> m_device_identifier;
|
||||
NonnullRefPtr<PCI::DeviceIdentifier const> m_device_identifier;
|
||||
|
||||
NonnullOwnPtr<KString> m_device_directory_name;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue