linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to pass I2C platform_data under ACPI
@ 2014-04-03  8:10 Pallala, Ramakrishna
  2014-04-03 11:12 ` mika.westerberg
  0 siblings, 1 reply; 8+ messages in thread
From: Pallala, Ramakrishna @ 2014-04-03  8:10 UTC (permalink / raw)
  To: mika.westerberg@linux.intel.com, linux-acpi@vger.kernel.org,
	linaro-acpi@lists.linaro.org, linux-kernel@vger.kernel.org

Hi All,

I am trying to enable a i2c client driver under ACPI. The device is being enumerated behind adapter device and I am getting IRQ resource as well.

The problem I have now is, how do I pass the platform data to driver?

struct i2c_board_info {
        char            type[I2C_NAME_SIZE];
        unsigned short  flags;
        unsigned short  addr;
        void            *platform_data; ===========> how can I initialize this filed.
        struct dev_archdata     *archdata;
        struct device_node *of_node;
        struct acpi_dev_node acpi_node;
        int             irq;
};
 
In non ACPI environment I used to initialize the platform_data under board or platforms files. Under ACPI how do I do that?

Thanks,
Ram

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-04-03 15:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-03  8:10 How to pass I2C platform_data under ACPI Pallala, Ramakrishna
2014-04-03 11:12 ` mika.westerberg
2014-04-03 11:25   ` Pallala, Ramakrishna
2014-04-03 11:38     ` mika.westerberg
2014-04-03 13:34       ` [Linaro-acpi] " Arnd Bergmann
2014-04-03 13:58         ` mika.westerberg
2014-04-03 13:59           ` Pallala, Ramakrishna
2014-04-03 15:05             ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).