Thread (1 message) 1 message, 1 author, 2012-07-13

Re: [PATCH 00/11] make struct of_device_id.data const

From: Arnd Bergmann <hidden>
Date: 2012-07-13 18:56:40
Also in: linux-arm-kernel

On Friday 13 July 2012, Uwe Kleine-König wrote:
quoted
@@ -502,15 +502,15 @@ static const struct fsl_msi_feature vmpic_msi_feature = {
 static const struct of_device_id fsl_of_msi_ids[] = {
      {
              .compatible = "fsl,mpic-msi",
-             .data = (void *)&mpic_msi_feature,
+             .data = &mpic_msi_feature,
This looks unrelated.

Well, the cast to (void *) was used to cast away the const-ness of the
"static const struct fsl_msi_feature mpic_msi_feature", so that is no
longer needed after the last patch.

	Arnd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help