bindings: rust: construct chip infos by reference
authorErik Schilling <erik.schilling@linaro.org>
Wed, 27 Sep 2023 09:25:23 +0000 (11:25 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 29 Sep 2023 12:45:55 +0000 (14:45 +0200)
commita97fe9654287da050d5ac1cdeab825e845f4c7bb
treeefd34dfe505e45e944208b8664994dd1cea886d6
parent27afa47fcbb5905ada95e1e7b8ab9faba9ba9c0c
bindings: rust: construct chip infos by reference

No need to clone the Arc for this. A simple reference is enough to get
to the underlying chip pointer.

Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/rust/libgpiod/src/chip.rs