Skip to content

Commit a3d3aa5

Browse files
ulfalizergalak
authored andcommitted
scripts/dts: Remove redundant empty constructors
It's not obligatory for Python classes to have an __init__(). Signed-off-by: Ulf Magnusson <[email protected]>
1 parent 0a3f00a commit a3d3aa5

File tree

8 files changed

+0
-29
lines changed

8 files changed

+0
-29
lines changed

scripts/dts/extract/clocks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
# directives.
1616
#
1717
class DTClocks(DTDirective):
18-
19-
def __init__(self):
20-
pass
21-
2218
def _extract_consumer(self, node_path, clocks, def_label):
2319

2420
clock_consumer = reduced[node_path]

scripts/dts/extract/compatible.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
# - compatible
1515
#
1616
class DTCompatible(DTDirective):
17-
18-
def __init__(self):
19-
pass
20-
2117
##
2218
# @brief Extract compatible
2319
#

scripts/dts/extract/default.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
# @brief Manage directives in a default way.
1212
#
1313
class DTDefault(DTDirective):
14-
15-
def __init__(self):
16-
pass
17-
1814
##
1915
# @brief Extract directives in a default way
2016
#

scripts/dts/extract/directive.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class DTDirective(object):
2323
def get_label_string(label):
2424
return str_to_label('_'.join(x.strip() for x in label if x.strip()))
2525

26-
def __init__():
27-
pass
28-
2926
##
3027
# @brief Extract directive information.
3128
#

scripts/dts/extract/flash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# @brief Manage flash directives.
1515
#
1616
class DTFlash(DTDirective):
17-
1817
def __init__(self):
1918
# Node of the flash
2019
self._flash_node = None

scripts/dts/extract/interrupts.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
# @brief Manage interrupts directives.
1212
#
1313
class DTInterrupts(DTDirective):
14-
15-
def __init__(self):
16-
pass
17-
1814
def _find_parent_irq_node(self, node_path):
1915
address = ''
2016

scripts/dts/extract/pinctrl.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
# @brief Manage pinctrl-x directive.
1212
#
1313
class DTPinCtrl(DTDirective):
14-
15-
def __init__(self):
16-
pass
17-
1814
##
1915
# @brief Extract pinctrl information.
2016
#

scripts/dts/extract/reg.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
# @brief Manage reg directive.
1414
#
1515
class DTReg(DTDirective):
16-
17-
def __init__(self):
18-
pass
19-
2016
##
2117
# @brief Extract reg directive info
2218
#
@@ -27,7 +23,6 @@ def __init__(self):
2723
# compatible definition.
2824
#
2925
def extract(self, node_path, names, def_label, div):
30-
3126
node = reduced[node_path]
3227
node_compat = get_compat(node_path)
3328
binding = get_binding(node_path)

0 commit comments

Comments
 (0)