[RFC][PATCH 4/4] lcd: platform-lcd: Add device tree support
Thomas Abraham
thomas.abraham at linaro.org
Mon Jan 2 12:33:41 EST 2012
Hi Grant,
On 2 January 2012 13:04, Grant Likely <grant.likely at 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 at fluff.org>
>> Signed-off-by: Thomas Abraham <thomas.abraham at 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.
[...]
More information about the linux-arm-kernel
mailing list