OSDN Git Service

of/unittest: Swap arguments of of_unittest_apply_overlay()
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Thu, 19 Jan 2017 10:06:16 +0000 (11:06 +0100)
committerRob Herring <robh@kernel.org>
Mon, 23 Jan 2017 20:58:03 +0000 (14:58 -0600)
commitca7b89647b76a2f5c26f0927bb72fdaf854d6592
tree590a0889cf74a91d75da56417aa8f8fd664b6d88
parenta51741ebe1315c88488ed35f942e95f427ea2d31
of/unittest: Swap arguments of of_unittest_apply_overlay()

Function signature

  of_unittest_apply_overlay(int unittest_nr, int overlay_nr, ...

and call sites, like in of_unittest_apply_overlay_check():

  ret = of_unittest_apply_overlay(overlay_nr, unittest_nr, ...

do not match. Fix this in one place (function signature).
The only affected test case is 15, which supplies non-existing
overlay number 16, but two bugs matched here. Fix the test case.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c