Messages in this thread | | | Date | Mon, 2 Jan 2012 23:03:41 +0530 | Subject | Re: [RFC][PATCH 4/4] lcd: platform-lcd: Add device tree support | From | Thomas Abraham <> |
| |
Hi Grant,
On 2 January 2012 13:04, Grant Likely <grant.likely@secretlab.ca> wrote: > On Mon, Jan 02, 2012 at 11:24:35AM +0530, Thomas Abraham wrote: >> Add device tree based initialization for Hydis hv070wsa lcd panel. >> >> Cc: Ben Dooks <ben-linux@fluff.org> >> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> >> --- >> drivers/video/backlight/platform_lcd.c | 33 ++++++++++++++++++++++++++++++++ >> 1 files changed, 33 insertions(+), 0 deletions(-) >> >> diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c
[...]
>> +#ifdef CONFIG_OF >> + if (pdev->dev.of_node) { >> + const struct of_device_id *match; >> + match = of_match_node(platform_lcd_dt_match, pdev->dev.of_node); >> + return (struct plat_lcd_driver_data *)match->data; > > .data is already void*; the cast should not be necessary.
Thanks. I will remove the cast.
Regards, Thomas.
[...] -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |