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()

Quoted 14 lines · Andy Shevchenko
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.

Quoted 3 lines

It's exactly 79 characters.
What problem?

OK. Maybe with one of the versions I posted. Just checking.