Skip to content

Commit 55dcbc0

Browse files
Sakari Ailusrafaeljw
authored andcommitted
ACPI: property: Move acpi_fwnode_device_get_match_data() up
Move acpi_fwnode_device_get_match_data() up below acpi_fwnode_device_is_available() so the order matches that in struct fwnode_operations. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8c756a0 commit 55dcbc0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/acpi/property.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,13 @@ static bool acpi_fwnode_device_is_available(const struct fwnode_handle *fwnode)
12561256
return acpi_device_is_present(to_acpi_device_node(fwnode));
12571257
}
12581258

1259+
static const void *
1260+
acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
1261+
const struct device *dev)
1262+
{
1263+
return acpi_device_get_match_data(dev);
1264+
}
1265+
12591266
static bool acpi_fwnode_device_dma_supported(const struct fwnode_handle *fwnode)
12601267
{
12611268
return acpi_dma_supported(to_acpi_device_node(fwnode));
@@ -1387,13 +1394,6 @@ static int acpi_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
13871394
return 0;
13881395
}
13891396

1390-
static const void *
1391-
acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
1392-
const struct device *dev)
1393-
{
1394-
return acpi_device_get_match_data(dev);
1395-
}
1396-
13971397
#define DECLARE_ACPI_FWNODE_OPS(ops) \
13981398
const struct fwnode_operations ops = { \
13991399
.device_is_available = acpi_fwnode_device_is_available, \

0 commit comments

Comments
 (0)