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:
Saleem Abdulrasool
2011-01-20 20:02:41 -08:00
parent d552e0f4f7
commit ecfe4e9900
3 changed files with 54 additions and 19 deletions

View File

@@ -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;