aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinan Kaya <okaya@codeaurora.org>2017-12-13 02:20:51 -0500
committerVinod Koul <vinod.koul@intel.com>2017-12-13 03:40:58 -0500
commit146b4dbb0eef3695f35f5a80224d1f18c110ec85 (patch)
tree55286959c9d1a8b6845c0b3c05e8aa1721233b2f
parent1c2c82ea2826602717c32b72f7c6debbbf6aff48 (diff)
ACPI: properties: Implement get_match_data() callback
Now that we have a get_match_data() callback as part of the firmware node, implement the ACPI specific piece for it. Signed-off-by: Sinan Kaya <okaya@codeaurora.org> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/acpi/property.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c
index e26ea209b63e..466d1503aba0 100644
--- a/drivers/acpi/property.c
+++ b/drivers/acpi/property.c
@@ -1271,9 +1271,17 @@ static int acpi_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
1271 return 0; 1271 return 0;
1272} 1272}
1273 1273
1274static void *
1275acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
1276 const struct device *dev)
1277{
1278 return acpi_get_match_data(dev);
1279}
1280
1274#define DECLARE_ACPI_FWNODE_OPS(ops) \ 1281#define DECLARE_ACPI_FWNODE_OPS(ops) \
1275 const struct fwnode_operations ops = { \ 1282 const struct fwnode_operations ops = { \
1276 .device_is_available = acpi_fwnode_device_is_available, \ 1283 .device_is_available = acpi_fwnode_device_is_available, \
1284 .device_get_match_data = acpi_fwnode_device_get_match_data, \
1277 .property_present = acpi_fwnode_property_present, \ 1285 .property_present = acpi_fwnode_property_present, \
1278 .property_read_int_array = \ 1286 .property_read_int_array = \
1279 acpi_fwnode_property_read_int_array, \ 1287 acpi_fwnode_property_read_int_array, \