Skip to content

Commit 1c5e05c

Browse files
committed
reset: whitespace fixes
Fixes checkpatch issues: CHECK: Alignment should match open parenthesis torvalds#87: FILE: drivers/reset/core.c:87: +static int of_reset_simple_xlate(struct reset_controller_dev *rcdev, + const struct of_phandle_args *reset_spec) CHECK: Lines should not end with a '(' torvalds#540: FILE: drivers/reset/core.c:540: +static struct reset_control *__reset_control_get_internal( CHECK: Alignment should match open parenthesis torvalds#603: FILE: drivers/reset/core.c:603: +struct reset_control *__of_reset_control_get(struct device_node *node, + const char *id, int index, bool shared, CHECK: Alignment should match open parenthesis torvalds#781: FILE: drivers/reset/core.c:781: +struct reset_control *__devm_reset_control_get(struct device *dev, + const char *id, int index, bool shared, Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
1 parent 453ed42 commit 1c5e05c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/reset/core.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static const char *rcdev_name(struct reset_controller_dev *rcdev)
8484
* without gaps.
8585
*/
8686
static int of_reset_simple_xlate(struct reset_controller_dev *rcdev,
87-
const struct of_phandle_args *reset_spec)
87+
const struct of_phandle_args *reset_spec)
8888
{
8989
if (reset_spec->args[0] >= rcdev->nr_resets)
9090
return -EINVAL;
@@ -744,9 +744,9 @@ void reset_control_bulk_release(int num_rstcs,
744744
}
745745
EXPORT_SYMBOL_GPL(reset_control_bulk_release);
746746

747-
static struct reset_control *__reset_control_get_internal(
748-
struct reset_controller_dev *rcdev,
749-
unsigned int index, bool shared, bool acquired)
747+
static struct reset_control *
748+
__reset_control_get_internal(struct reset_controller_dev *rcdev,
749+
unsigned int index, bool shared, bool acquired)
750750
{
751751
struct reset_control *rstc;
752752

@@ -806,9 +806,9 @@ static void __reset_control_put_internal(struct reset_control *rstc)
806806
kref_put(&rstc->refcnt, __reset_control_release);
807807
}
808808

809-
struct reset_control *__of_reset_control_get(struct device_node *node,
810-
const char *id, int index, bool shared,
811-
bool optional, bool acquired)
809+
struct reset_control *
810+
__of_reset_control_get(struct device_node *node, const char *id, int index,
811+
bool shared, bool optional, bool acquired)
812812
{
813813
struct reset_control *rstc;
814814
struct reset_controller_dev *r, *rcdev;
@@ -1027,9 +1027,9 @@ static void devm_reset_control_release(struct device *dev, void *res)
10271027
reset_control_put(*(struct reset_control **)res);
10281028
}
10291029

1030-
struct reset_control *__devm_reset_control_get(struct device *dev,
1031-
const char *id, int index, bool shared,
1032-
bool optional, bool acquired)
1030+
struct reset_control *
1031+
__devm_reset_control_get(struct device *dev, const char *id, int index,
1032+
bool shared, bool optional, bool acquired)
10331033
{
10341034
struct reset_control **ptr, *rstc;
10351035

0 commit comments

Comments
 (0)