mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:55:08 +00:00
Kernel: Rename HardwareTimer::change_function() => set_callback()
Also make it non-virtual since nothing needs to override it.
This commit is contained in:
parent
b035267afa
commit
c891c87cb5
3 changed files with 5 additions and 4 deletions
|
@ -48,7 +48,7 @@ const char* HardwareTimer::purpose() const
|
|||
return model();
|
||||
}
|
||||
|
||||
void HardwareTimer::change_function(Function<void(const RegisterState&)> callback)
|
||||
void HardwareTimer::set_callback(Function<void(const RegisterState&)> callback)
|
||||
{
|
||||
disable_irq();
|
||||
m_callback = move(callback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue