summaryrefslogtreecommitdiff
path: root/src/drivers/include/display.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/include/display.hpp')
-rw-r--r--src/drivers/include/display.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/include/display.hpp b/src/drivers/include/display.hpp
index 77165c99..766fc4ea 100644
--- a/src/drivers/include/display.hpp
+++ b/src/drivers/include/display.hpp
@@ -30,10 +30,10 @@ class Display {
* over SPI. This never fails, since unfortunately these display don't give
* us back any kind of signal to tell us we're actually using them correctly.
*/
- static auto Create(IGpios* expander,
+ static auto Create(IGpios& expander,
const displays::InitialisationData& init_data) -> Display*;
- Display(IGpios* gpio, spi_device_handle_t handle);
+ Display(IGpios& gpio, spi_device_handle_t handle);
~Display();
auto SetDisplayOn(bool) -> void;
@@ -49,7 +49,7 @@ class Display {
Display& operator=(const Display&) = delete;
private:
- IGpios* gpio_;
+ IGpios& gpio_;
spi_device_handle_t handle_;
std::unique_ptr<tasks::Worker> worker_task_;