mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-23 07:04:16 +00:00
siihdmi: add siihdmi_platform_data
SII9022 requires some platform specific data that was previously hardcoded into the driver. Create a new siihdmi_platform_data struct to actually get this information. This allows a particular vendor to supply the IRQ vector, the reset method, the framebuffer id, as well as the vendor/description for the SPD block currently.
This commit is contained in:
@@ -311,8 +311,25 @@ struct siihdmi_audio_info_frame {
|
||||
struct audio_info_frame info_frame;
|
||||
};
|
||||
|
||||
struct siihdmi_platform_data {
|
||||
/* reset function */
|
||||
void (*reset)(void);
|
||||
|
||||
/* HDMI SPD InfoFrame Data */
|
||||
char *vendor;
|
||||
char *description;
|
||||
|
||||
/* framebuffer fixed id */
|
||||
char *framebuffer;
|
||||
|
||||
/* hotplug IRQ */
|
||||
int hotplug_irq;
|
||||
};
|
||||
|
||||
struct siihdmi_tx {
|
||||
struct i2c_client *client;
|
||||
struct siihdmi_platform_data *platform;
|
||||
|
||||
struct notifier_block nb;
|
||||
struct delayed_work hotplug;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user