From 96ef527436b70dd54b6584e568a905d26583f22e Mon Sep 17 00:00:00 2001 From: Pirmin Duss Date: Fri, 5 Jul 2024 12:06:27 +0200 Subject: [PATCH] Gpio::Connection accept a session label This allows a component to access GPIOs from different banks of an SOC. Issue genodelabs#5273 --- repos/os/include/gpio_session/connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/include/gpio_session/connection.h b/repos/os/include/gpio_session/connection.h index f7a36bf711..c6518afa75 100644 --- a/repos/os/include/gpio_session/connection.h +++ b/repos/os/include/gpio_session/connection.h @@ -24,9 +24,9 @@ namespace Gpio { struct Connection; } struct Gpio::Connection : Genode::Connection, Session_client { - Connection(Genode::Env &env, unsigned long gpio_pin) + Connection(Genode::Env &env, unsigned long gpio_pin, Label label = "") : - Genode::Connection(env, Label(), Ram_quota { 8*1024 }, + Genode::Connection(env, label, Ram_quota { 8*1024 }, Args("gpio=", gpio_pin)), Session_client(cap()) { }