mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
ARM: sa11x0: Implement autoloading of codec and codec pdata for mcp bus.
Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
c9531227b2
commit
5dd7bf59e0
15 changed files with 138 additions and 21 deletions
|
@ -774,6 +774,15 @@ static int do_spi_entry(const char *filename, struct spi_device_id *id,
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* Looks like: mcp:S */
|
||||
static int do_mcp_entry(const char *filename, struct mcp_device_id *id,
|
||||
char *alias)
|
||||
{
|
||||
sprintf(alias, MCP_MODULE_PREFIX "%s", id->name);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const struct dmifield {
|
||||
const char *prefix;
|
||||
int field;
|
||||
|
@ -1027,6 +1036,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
|
|||
do_table(symval, sym->st_size,
|
||||
sizeof(struct spi_device_id), "spi",
|
||||
do_spi_entry, mod);
|
||||
else if (sym_is(symname, "__mod_mcp_device_table"))
|
||||
do_table(symval, sym->st_size,
|
||||
sizeof(struct mcp_device_id), "mcp",
|
||||
do_mcp_entry, mod);
|
||||
else if (sym_is(symname, "__mod_dmi_device_table"))
|
||||
do_table(symval, sym->st_size,
|
||||
sizeof(struct dmi_system_id), "dmi",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue