From bb51cce6f624a198bf3ea31252bbbc46632cd75a Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 19 Mar 2020 23:46:55 +0100 Subject: [PATCH] ad7172: remove stale code --- src/ad7172/regs.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/ad7172/regs.rs b/src/ad7172/regs.rs index 81ce87c..25d2aaa 100644 --- a/src/ad7172/regs.rs +++ b/src/ad7172/regs.rs @@ -199,21 +199,6 @@ impl channel::Data { } reg_bits!(a_in_neg, set_a_in_neg, 1, 0..=4, Input, "Which input is connected to negative input of this channel"); - - // const PROPS: &'static [Property] = &[ - // Property::named("enable") - // .readable(&|self_: &Self| self_.enabled().into()) - // .writebale(&|self_: &mut Self, value| self_.set_enabled(value != 0)), - // Property::named("setup") - // .readable(&|self_: &Self| self_.0[0].get_bits(4..=5).into()) - // .writeable(&|self_: &mut Self, value| { - // self_.0[0].set_bits(4..=5, value as u8); - // }), - // ]; - - // pub fn props() -> &'static [Property] { - // Self::PROPS - // } } def_reg!(SetupCon, u8, setup_con, 0x20, 2);