Re: [PATCH] dma: tegra: add const to of_device_id.data's structure
From: Uwe Kleine-König <hidden>
Date: 2012-08-28 18:38:29
Also in:
lkml
From: Uwe Kleine-König <hidden>
Date: 2012-08-28 18:38:29
Also in:
lkml
On Sun, Aug 26, 2012 at 09:25:26PM -0700, Stephen Warren wrote:
On 08/26/2012 03:14 AM, Laxman Dewangan wrote:quoted
The membe "data" of structure of_device_id is changed to const pointer. Hence initializing this with const type data. This will fix the compilation warning like drivers/dma/tegra20-apb-dma.c:1217:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] This warning came after the change --------- commit 98d7bbb9929bcc14e11ac8a55245a4f2dc174e17 Author: Uwe Kleine-König [off-list ref] of: add const to struct *of_device_id.data ---------Acked-by: Stephen Warren <redacted> I wonder if this should go through Uwe's branch that made similar changes for all other drivers though? Uwe now CC'd.
If you forward/bounce the patch to me I can include it in my branch. I wonder if I missed this warning while testing. I did test all arm defconfigs based on 3.6-rc1. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |