From: Luke Kenneth Casson Leighton Date: Sun, 5 Aug 2018 19:07:17 +0000 (+0100) Subject: merge redundant function params X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bd2e8996bba6fcbf5cc299648f23b761019347f;p=pinmux.git merge redundant function params --- diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index eb9b896..4f4cb78 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -953,7 +953,8 @@ class PeripheralInterfaces(object): class IfaceIter(object): - def __init__(self, name, count, *args): + def __init__(self, ifaces, name, count, *args): + self.ifaces = ifaces self.i = 0 self.name = name self.maxcount = count @@ -981,10 +982,6 @@ class IfaceIter(object): class MkConnection(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -997,10 +994,6 @@ class MkConnection(IfaceIter): class MkExtIface(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -1010,10 +1003,6 @@ class MkExtIface(IfaceIter): class MkPinCon(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -1023,10 +1012,6 @@ class MkPinCon(IfaceIter): class MkClkCon(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i)