diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2017-12-13 02:20:49 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-12-13 14:10:57 +0530 |
commit | b283f157611f129f5bbbf7d06f5af860d76797fd (patch) | |
tree | bf89e94e72184a1a7a703e0b9c2b96ebd91b988d /include/linux/property.h | |
parent | 80212a162329e590fde02d8457af16ea0ab0a55f (diff) | |
download | lwn-b283f157611f129f5bbbf7d06f5af860d76797fd.tar.gz lwn-b283f157611f129f5bbbf7d06f5af860d76797fd.zip |
device property: Introduce a common API to fetch device match data
There is an OF/ACPI function to obtain the driver data. We want to hide
OF/ACPI details from the device drivers and abstract following the device
family of functions.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r-- | include/linux/property.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h index f6189a3ac63c..6653ed4b99f9 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -275,6 +275,8 @@ bool device_dma_supported(struct device *dev); enum dev_dma_attr device_get_dma_attr(struct device *dev); +void *device_get_match_data(struct device *dev); + int device_get_phy_mode(struct device *dev); void *device_get_mac_address(struct device *dev, char *addr, int alen); |