On 01/17/2011 01:59 PM, Stephen Rothwell wrote:
>> +/*
>> + * struct altera_spi_platform_data - platform data of the Altera SPI
>> + * @interrupt: use intrrupt driven data transfer.
>> + */
>> +struct altera_spi_platform_data {
>> + int interrupt;
>> +};
>
> Is there some reason that this struct definition cannot just be placed
> in spi_altera.c and so save a whole extra file (and its inclusion)?
>
Hi Stephen,
It is needed for board configuration file to attach this platform data,
which is used to choose between interrupt driven data transfer or
polling method. The data transfer rate is usually faster for polling, as
interrupt overhead is higher.
Best regards,
Thomas
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general