Skip to contentSkip to conversation

device property: Constify device_get_match_data()

PATCH New Sinan Kaya 1 participant 1 message Feb 1, 2018

Subsystems (2)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH v2 6/6 device property: Constify device_get_match_data()

Review

Quoted 7 lines · Andy Shevchenko
(quoted diff) +2 -3
-void *device_get_match_data(struct device *dev)
+const void *device_get_match_data(struct device *dev)
 {
-	return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
-				  dev);
+	return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
 }

I remember having a checkpatch problem here.