lkml.org 
[lkml]   [2014]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: How to pass I2C platform_data under ACPI
Date
>> In non ACPI environment I used to initialize the platform_data under 
>> board or platforms files. Under ACPI how do I do that?
>
>If you can't extract that information from ACPI namespace, then one option is to pass platform data along with the device ACPI ID:
>
>static const struct acpi_device_id my_acpi_match[] = {
> { "MYID0001", (kernel_ulong_t)&my_platform_data }
> ...
> { },
>};

Thanks for the Quick reply.

So If I want to use different platform_data for different boards can I do something like below?
And initialize the platform data in either driver or in separate module which gets compiled along with driver?

static const struct acpi_device_id my_acpi_match[] = {
{ "MYID0001", (kernel_ulong_t)&my_platform_data1 }
{ "MYID0002", (kernel_ulong_t)&my_platform_data2 }
...
{ },

Thanks,
Ram


\
 
 \ /
  Last update: 2014-04-04 16:01    [W:0.065 / U:1.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site