Skip to contentSkip to conversation

device property: Constify device_get_match_data()

PATCH Superseded Andy Shevchenko 1 participant 1 message Feb 1, 2018

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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

Quoted 12 lines · Sinan Kaya
Quoted 9 lines · Andy Shevchenko
(quoted diff) +1 -2
-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,

(quoted diff) +1 -1
-				  dev);
+	return fwnode_call_ptr_op(dev_fwnode(dev),

device_get_match_data, dev);
}

I remember having a checkpatch problem here.

It's exactly 79 characters.
What problem?