mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
device property: Constify device_get_match_data()
Constify device_get_match_data() as OF and ACPI variants return constant value. Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
29d5325a14
commit
67dcc26d20
7 changed files with 12 additions and 13 deletions
|
|
@ -977,11 +977,11 @@ static int of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void *
|
||||
static const void *
|
||||
of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
|
||||
const struct device *dev)
|
||||
{
|
||||
return (void *)of_device_get_match_data(dev);
|
||||
return of_device_get_match_data(dev);
|
||||
}
|
||||
|
||||
const struct fwnode_operations of_fwnode_ops = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue