ASoC: Use named initializers for arrays of i2c_device_data

While being less compact, using named initializers allows to more easily
see which members of the structs are assigned which value without having
to lookup the declaration of the struct. And it's also more robust
against changes to the struct definition.

The mentioned robustness is relevant for a planned change to struct
i2c_device_id that replaces .driver_data by an anonymous union.

While touching all these arrays, unify indention and usage of commas.

This patch doesn't modify the compiled arrays, only their representation
in source form benefits. The former was confirmed with x86 and arm64
builds.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/ae2ff4898eb340bd8bcafb7b75443eb4a0ce3e76.1778692164.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) 2026-05-13 19:23:04 +02:00 committed by Mark Brown
parent 2e0389f368
commit 910714d4e7
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
200 changed files with 391 additions and 391 deletions

View File

@ -39,8 +39,8 @@ static void cs35l41_hda_i2c_remove(struct i2c_client *clt)
}
static const struct i2c_device_id cs35l41_hda_i2c_id[] = {
{ "cs35l41-hda" },
{}
{ .name = "cs35l41-hda" },
{ }
};
static const struct acpi_device_id cs35l41_acpi_hda_match[] = {

View File

@ -51,10 +51,10 @@ static void cs35l56_hda_i2c_remove(struct i2c_client *clt)
}
static const struct i2c_device_id cs35l56_hda_i2c_id[] = {
{ "cs35l54-hda", 0x3554 },
{ "cs35l56-hda", 0x3556 },
{ "cs35l57-hda", 0x3557 },
{}
{ .name = "cs35l54-hda", .driver_data = 0x3554 },
{ .name = "cs35l56-hda", .driver_data = 0x3556 },
{ .name = "cs35l57-hda", .driver_data = 0x3557 },
{ }
};
static const struct acpi_device_id cs35l56_acpi_hda_match[] = {

View File

@ -791,8 +791,8 @@ static const struct dev_pm_ops tas2781_hda_pm_ops = {
};
static const struct i2c_device_id tas2781_hda_i2c_id[] = {
{ "tas2781-hda" },
{}
{ .name = "tas2781-hda" },
{ }
};
static const struct acpi_device_id tas2781_acpi_hda_match[] = {

View File

@ -14,8 +14,8 @@
#include "ad193x.h"
static const struct i2c_device_id ad193x_id[] = {
{ "ad1936", AD193X },
{ "ad1937", AD193X },
{ .name = "ad1936", .driver_data = AD193X },
{ .name = "ad1937", .driver_data = AD193X },
{ }
};
MODULE_DEVICE_TABLE(i2c, ad193x_id);

View File

@ -21,7 +21,7 @@ static int adau1372_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id adau1372_i2c_ids[] = {
{ "adau1372" },
{ .name = "adau1372" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1372_i2c_ids);

View File

@ -1599,7 +1599,7 @@ static int adau1373_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id adau1373_i2c_id[] = {
{ "adau1373" },
{ .name = "adau1373" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1373_i2c_id);

View File

@ -860,10 +860,10 @@ static int adau1701_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id adau1701_i2c_id[] = {
{ "adau1401" },
{ "adau1401a" },
{ "adau1701" },
{ "adau1702" },
{ .name = "adau1401" },
{ .name = "adau1401a" },
{ .name = "adau1701" },
{ .name = "adau1702" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1701_i2c_id);

View File

@ -33,10 +33,10 @@ static void adau1761_i2c_remove(struct i2c_client *client)
}
static const struct i2c_device_id adau1761_i2c_ids[] = {
{ "adau1361", ADAU1361 },
{ "adau1461", ADAU1761 },
{ "adau1761", ADAU1761 },
{ "adau1961", ADAU1361 },
{ .name = "adau1361", .driver_data = ADAU1361 },
{ .name = "adau1461", .driver_data = ADAU1761 },
{ .name = "adau1761", .driver_data = ADAU1761 },
{ .name = "adau1961", .driver_data = ADAU1361 },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1761_i2c_ids);

View File

@ -33,8 +33,8 @@ static void adau1781_i2c_remove(struct i2c_client *client)
}
static const struct i2c_device_id adau1781_i2c_ids[] = {
{ "adau1381", ADAU1381 },
{ "adau1781", ADAU1781 },
{ .name = "adau1381", .driver_data = ADAU1381 },
{ .name = "adau1781", .driver_data = ADAU1781 },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1781_i2c_ids);

View File

@ -28,9 +28,9 @@ static int adau1977_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id adau1977_i2c_ids[] = {
{ "adau1977", ADAU1977 },
{ "adau1978", ADAU1978 },
{ "adau1979", ADAU1978 },
{ .name = "adau1977", .driver_data = ADAU1977 },
{ .name = "adau1978", .driver_data = ADAU1978 },
{ .name = "adau1979", .driver_data = ADAU1978 },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau1977_i2c_ids);

View File

@ -68,8 +68,8 @@ static const struct of_device_id adau7118_of_match[] = {
MODULE_DEVICE_TABLE(of, adau7118_of_match);
static const struct i2c_device_id adau7118_id[] = {
{"adau7118"},
{}
{ .name = "adau7118" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adau7118_id);

View File

@ -14,7 +14,7 @@
#include "adav80x.h"
static const struct i2c_device_id adav803_id[] = {
{ "adav803" },
{ .name = "adav803" },
{ }
};
MODULE_DEVICE_TABLE(i2c, adav803_id);

View File

@ -395,8 +395,8 @@ MODULE_DEVICE_TABLE(of, ak4118_of_match);
#endif
static const struct i2c_device_id ak4118_id_table[] = {
{ "ak4118" },
{}
{ .name = "ak4118" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ak4118_id_table);

View File

@ -430,7 +430,7 @@ static int ak4535_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id ak4535_i2c_id[] = {
{ "ak4535" },
{ .name = "ak4535" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ak4535_i2c_id);

View File

@ -303,7 +303,7 @@ static const struct of_device_id ak4613_of_match[] = {
MODULE_DEVICE_TABLE(of, ak4613_of_match);
static const struct i2c_device_id ak4613_i2c_id[] = {
{ "ak4613", (kernel_ulong_t)&ak4613_regmap_cfg },
{ .name = "ak4613", .driver_data = (kernel_ulong_t)&ak4613_regmap_cfg },
{ }
};
MODULE_DEVICE_TABLE(i2c, ak4613_i2c_id);

View File

@ -831,7 +831,7 @@ static const struct of_device_id ak4619_of_match[] = {
MODULE_DEVICE_TABLE(of, ak4619_of_match);
static const struct i2c_device_id ak4619_i2c_id[] = {
{ "ak4619", (kernel_ulong_t)&ak4619_regmap_cfg },
{ .name = "ak4619", .driver_data = (kernel_ulong_t)&ak4619_regmap_cfg },
{ }
};
MODULE_DEVICE_TABLE(i2c, ak4619_i2c_id);

View File

@ -672,10 +672,10 @@ static const struct of_device_id ak4642_of_match[] = {
MODULE_DEVICE_TABLE(of, ak4642_of_match);
static const struct i2c_device_id ak4642_i2c_id[] = {
{ "ak4642", (kernel_ulong_t)&ak4642_drvdata },
{ "ak4643", (kernel_ulong_t)&ak4643_drvdata },
{ "ak4648", (kernel_ulong_t)&ak4648_drvdata },
{}
{ .name = "ak4642", .driver_data = (kernel_ulong_t)&ak4642_drvdata },
{ .name = "ak4643", .driver_data = (kernel_ulong_t)&ak4643_drvdata },
{ .name = "ak4648", .driver_data = (kernel_ulong_t)&ak4648_drvdata },
{ }
};
MODULE_DEVICE_TABLE(i2c, ak4642_i2c_id);

View File

@ -646,7 +646,7 @@ static int ak4671_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id ak4671_i2c_id[] = {
{ "ak4671" },
{ .name = "ak4671" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ak4671_i2c_id);

View File

@ -963,10 +963,10 @@ static const struct regmap_config alc5623_regmap = {
};
static const struct i2c_device_id alc5623_i2c_table[] = {
{"alc5621", 0x21},
{"alc5622", 0x22},
{"alc5623", 0x23},
{}
{ .name = "alc5621", .driver_data = 0x21 },
{ .name = "alc5622", .driver_data = 0x22 },
{ .name = "alc5623", .driver_data = 0x23 },
{ }
};
MODULE_DEVICE_TABLE(i2c, alc5623_i2c_table);

View File

@ -1092,8 +1092,8 @@ static const struct regmap_config alc5632_regmap = {
};
static const struct i2c_device_id alc5632_i2c_table[] = {
{"alc5632", 0x5c},
{}
{ .name = "alc5632", .driver_data = 0x5c },
{ }
};
MODULE_DEVICE_TABLE(i2c, alc5632_i2c_table);

View File

@ -599,8 +599,8 @@ static const struct of_device_id aw87390_of_match[] = {
MODULE_DEVICE_TABLE(of, aw87390_of_match);
static const struct i2c_device_id aw87390_i2c_id[] = {
{ AW87390_I2C_NAME },
{ AW87391_I2C_NAME },
{ .name = AW87390_I2C_NAME },
{ .name = AW87391_I2C_NAME },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw87390_i2c_id);

View File

@ -1240,8 +1240,8 @@ static const struct snd_soc_component_driver soc_codec_dev_aw88081 = {
};
static const struct i2c_device_id aw88081_i2c_id[] = {
{ AW88081_I2C_NAME, AW88081},
{ AW88083_I2C_NAME, AW88083},
{ .name = AW88081_I2C_NAME, .driver_data = AW88081 },
{ .name = AW88083_I2C_NAME, .driver_data = AW88083 },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw88081_i2c_id);

View File

@ -1801,7 +1801,7 @@ static int aw88166_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id aw88166_i2c_id[] = {
{ AW88166_I2C_NAME },
{ .name = AW88166_I2C_NAME },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw88166_i2c_id);

View File

@ -1274,7 +1274,7 @@ static int aw88261_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id aw88261_i2c_id[] = {
{ "aw88261" },
{ .name = "aw88261" },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id);

View File

@ -558,7 +558,7 @@ static int aw88395_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id aw88395_i2c_id[] = {
{ AW88395_I2C_NAME },
{ .name = AW88395_I2C_NAME },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw88395_i2c_id);

View File

@ -2146,7 +2146,7 @@ static int aw88399_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id aw88399_i2c_id[] = {
{ AW88399_I2C_NAME },
{ .name = AW88399_I2C_NAME },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw88399_i2c_id);

View File

@ -555,8 +555,8 @@ MODULE_DEVICE_TABLE(of, cs35l32_of_match);
static const struct i2c_device_id cs35l32_id[] = {
{"cs35l32"},
{}
{ .name = "cs35l32" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l32_id);

View File

@ -1262,8 +1262,8 @@ static const struct of_device_id cs35l33_of_match[] = {
MODULE_DEVICE_TABLE(of, cs35l33_of_match);
static const struct i2c_device_id cs35l33_id[] = {
{"cs35l33"},
{}
{ .name = "cs35l33" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l33_id);

View File

@ -1175,8 +1175,8 @@ static const struct of_device_id cs35l34_of_match[] = {
MODULE_DEVICE_TABLE(of, cs35l34_of_match);
static const struct i2c_device_id cs35l34_id[] = {
{"cs35l34"},
{}
{ .name = "cs35l34" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l34_id);

View File

@ -1639,8 +1639,8 @@ static const struct of_device_id cs35l35_of_match[] = {
MODULE_DEVICE_TABLE(of, cs35l35_of_match);
static const struct i2c_device_id cs35l35_id[] = {
{"cs35l35"},
{}
{ .name = "cs35l35" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l35_id);

View File

@ -1918,8 +1918,8 @@ static const struct of_device_id cs35l36_of_match[] = {
MODULE_DEVICE_TABLE(of, cs35l36_of_match);
static const struct i2c_device_id cs35l36_id[] = {
{"cs35l36"},
{}
{ .name = "cs35l36" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l36_id);

View File

@ -20,11 +20,11 @@
#include "cs35l41.h"
static const struct i2c_device_id cs35l41_id_i2c[] = {
{ "cs35l40" },
{ "cs35l41" },
{ "cs35l51" },
{ "cs35l53" },
{}
{ .name = "cs35l40" },
{ .name = "cs35l41" },
{ .name = "cs35l51" },
{ .name = "cs35l53" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l41_id_i2c);

View File

@ -53,8 +53,8 @@ static const struct of_device_id cs35l45_of_match[] = {
MODULE_DEVICE_TABLE(of, cs35l45_of_match);
static const struct i2c_device_id cs35l45_id_i2c[] = {
{ "cs35l45" },
{}
{ .name = "cs35l45" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l45_id_i2c);

View File

@ -72,9 +72,9 @@ static void cs35l56_i2c_remove(struct i2c_client *client)
}
static const struct i2c_device_id cs35l56_id_i2c[] = {
{ "cs35l56", 0x3556 },
{ "cs35l63", 0x3563 },
{}
{ .name = "cs35l56", .driver_data = 0x3556 },
{ .name = "cs35l63", .driver_data = 0x3563 },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs35l56_id_i2c);

View File

@ -638,7 +638,7 @@ static const struct of_device_id cs4265_of_match[] = {
MODULE_DEVICE_TABLE(of, cs4265_of_match);
static const struct i2c_device_id cs4265_id[] = {
{ "cs4265" },
{ .name = "cs4265" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs4265_id);

View File

@ -732,8 +732,8 @@ static int cs4270_i2c_probe(struct i2c_client *i2c_client)
* cs4270_id - I2C device IDs supported by this driver
*/
static const struct i2c_device_id cs4270_id[] = {
{"cs4270"},
{}
{ .name = "cs4270" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs4270_id);

View File

@ -23,7 +23,7 @@ static int cs4271_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id cs4271_i2c_id[] = {
{ "cs4271" },
{ .name = "cs4271" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs4271_i2c_id);

View File

@ -78,8 +78,8 @@ static const struct acpi_device_id __maybe_unused cs42l42_acpi_match[] = {
MODULE_DEVICE_TABLE(acpi, cs42l42_acpi_match);
static const struct i2c_device_id cs42l42_id[] = {
{"cs42l42"},
{}
{ .name = "cs42l42" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42l42_id);

View File

@ -14,7 +14,7 @@
#include "cs42l51.h"
static const struct i2c_device_id cs42l51_i2c_id[] = {
{ "cs42l51" },
{ .name = "cs42l51" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42l51_i2c_id);

View File

@ -1226,7 +1226,7 @@ MODULE_DEVICE_TABLE(of, cs42l52_of_match);
static const struct i2c_device_id cs42l52_id[] = {
{ "cs42l52" },
{ .name = "cs42l52" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42l52_id);

View File

@ -1353,7 +1353,7 @@ MODULE_DEVICE_TABLE(of, cs42l56_of_match);
static const struct i2c_device_id cs42l56_id[] = {
{ "cs42l56" },
{ .name = "cs42l56" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42l56_id);

View File

@ -1369,8 +1369,8 @@ static const struct of_device_id cs42l73_of_match[] = {
MODULE_DEVICE_TABLE(of, cs42l73_of_match);
static const struct i2c_device_id cs42l73_id[] = {
{"cs42l73"},
{}
{ .name = "cs42l73" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42l73_id);

View File

@ -1101,8 +1101,8 @@ static const struct of_device_id cs42l84_of_match[] = {
MODULE_DEVICE_TABLE(of, cs42l84_of_match);
static const struct i2c_device_id cs42l84_id[] = {
{ "cs42l84" },
{}
{ .name = "cs42l84" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42l84_id);

View File

@ -49,9 +49,9 @@ static const struct of_device_id cs42xx8_of_match[] = {
MODULE_DEVICE_TABLE(of, cs42xx8_of_match);
static const struct i2c_device_id cs42xx8_i2c_id[] = {
{"cs42448", (kernel_ulong_t)&cs42448_data},
{"cs42888", (kernel_ulong_t)&cs42888_data},
{}
{ .name = "cs42448", .driver_data = (kernel_ulong_t)&cs42448_data },
{ .name = "cs42888", .driver_data = (kernel_ulong_t)&cs42888_data },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs42xx8_i2c_id);

View File

@ -2753,11 +2753,11 @@ MODULE_DEVICE_TABLE(acpi, cs43130_acpi_match);
static const struct i2c_device_id cs43130_i2c_id[] = {
{"cs43130"},
{"cs4399"},
{"cs43131"},
{"cs43198"},
{}
{ .name = "cs43130" },
{ .name = "cs4399" },
{ .name = "cs43131" },
{ .name = "cs43198" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs43130_i2c_id);

View File

@ -248,7 +248,7 @@ static int cs4341_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id cs4341_i2c_id[] = {
{ "cs4341" },
{ .name = "cs4341" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs4341_i2c_id);

View File

@ -358,8 +358,8 @@ static const struct of_device_id cs4349_of_match[] = {
MODULE_DEVICE_TABLE(of, cs4349_of_match);
static const struct i2c_device_id cs4349_i2c_id[] = {
{"cs4349"},
{}
{ .name = "cs4349" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs4349_i2c_id);

View File

@ -40,13 +40,13 @@ static const struct of_device_id cs530x_of_match[] = {
MODULE_DEVICE_TABLE(of, cs530x_of_match);
static const struct i2c_device_id cs530x_i2c_id[] = {
{ "cs4282", CS4282 },
{ "cs4302", CS4302 },
{ "cs4304", CS4304 },
{ "cs4308", CS4308 },
{ "cs5302", CS5302 },
{ "cs5304", CS5304 },
{ "cs5308", CS5308 },
{ .name = "cs4282", .driver_data = CS4282 },
{ .name = "cs4302", .driver_data = CS4302 },
{ .name = "cs4304", .driver_data = CS4304 },
{ .name = "cs4308", .driver_data = CS4308 },
{ .name = "cs5302", .driver_data = CS5302 },
{ .name = "cs5304", .driver_data = CS5304 },
{ .name = "cs5308", .driver_data = CS5308 },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs530x_i2c_id);

View File

@ -1083,8 +1083,8 @@ static const struct of_device_id cs53l30_of_match[] = {
MODULE_DEVICE_TABLE(of, cs53l30_of_match);
static const struct i2c_device_id cs53l30_id[] = {
{ "cs53l30" },
{}
{ .name = "cs53l30" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cs53l30_id);

View File

@ -1681,9 +1681,9 @@ static void cx2072x_i2c_remove(struct i2c_client *i2c)
}
static const struct i2c_device_id cx2072x_i2c_id[] = {
{ "cx20721" },
{ "cx20723" },
{}
{ .name = "cx20721" },
{ .name = "cx20723" },
{ }
};
MODULE_DEVICE_TABLE(i2c, cx2072x_i2c_id);

View File

@ -1238,7 +1238,7 @@ static int da7210_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id da7210_i2c_id[] = {
{ "da7210" },
{ .name = "da7210" },
{ }
};
MODULE_DEVICE_TABLE(i2c, da7210_i2c_id);

View File

@ -2271,7 +2271,7 @@ static const struct dev_pm_ops da7213_pm = {
};
static const struct i2c_device_id da7213_i2c_id[] = {
{ "da7213" },
{ .name = "da7213" },
{ }
};
MODULE_DEVICE_TABLE(i2c, da7213_i2c_id);

View File

@ -3282,8 +3282,8 @@ static int da7218_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id da7218_i2c_id[] = {
{ "da7217", DA7217_DEV_ID },
{ "da7218", DA7218_DEV_ID },
{ .name = "da7217", .driver_data = DA7217_DEV_ID },
{ .name = "da7218", .driver_data = DA7218_DEV_ID },
{ }
};
MODULE_DEVICE_TABLE(i2c, da7218_i2c_id);

View File

@ -2712,7 +2712,7 @@ static int da7219_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id da7219_i2c_id[] = {
{ "da7219", },
{ .name = "da7219" },
{ }
};
MODULE_DEVICE_TABLE(i2c, da7219_i2c_id);

View File

@ -1547,7 +1547,7 @@ static int da732x_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id da732x_i2c_id[] = {
{ "da7320"},
{ .name = "da7320" },
{ }
};
MODULE_DEVICE_TABLE(i2c, da732x_i2c_id);

View File

@ -1513,7 +1513,7 @@ static int da9055_i2c_probe(struct i2c_client *i2c)
* and PMIC, which must be different to operate together.
*/
static const struct i2c_device_id da9055_i2c_id[] = {
{ "da9055-codec" },
{ .name = "da9055-codec" },
{ }
};
MODULE_DEVICE_TABLE(i2c, da9055_i2c_id);

View File

@ -955,7 +955,7 @@ static int es8311_i2c_probe(struct i2c_client *i2c_client)
}
static const struct i2c_device_id es8311_id[] = {
{ "es8311" },
{ .name = "es8311" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8311_id);

View File

@ -895,8 +895,8 @@ static int es8316_i2c_probe(struct i2c_client *i2c_client)
}
static const struct i2c_device_id es8316_i2c_id[] = {
{"es8316" },
{}
{ .name = "es8316" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8316_i2c_id);

View File

@ -787,7 +787,7 @@ static int es8323_i2c_probe(struct i2c_client *i2c_client)
}
static const struct i2c_device_id es8323_i2c_id[] = {
{ "es8323" },
{ .name = "es8323" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8323_i2c_id);

View File

@ -1347,8 +1347,8 @@ static void es8326_i2c_remove(struct i2c_client *i2c)
}
static const struct i2c_device_id es8326_i2c_id[] = {
{"es8326" },
{}
{ .name = "es8326" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8326_i2c_id);

View File

@ -16,8 +16,8 @@
#include "es8328.h"
static const struct i2c_device_id es8328_id[] = {
{ "es8328" },
{ "es8388" },
{ .name = "es8328" },
{ .name = "es8388" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8328_id);

View File

@ -752,7 +752,7 @@ static void es8375_i2c_shutdown(struct i2c_client *i2c)
}
static const struct i2c_device_id es8375_id[] = {
{"es8375"},
{ .name = "es8375" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8375_id);

View File

@ -1015,7 +1015,7 @@ MODULE_DEVICE_TABLE(of, es8389_if_dt_ids);
#endif
static const struct i2c_device_id es8389_i2c_id[] = {
{"es8389"},
{ .name = "es8389" },
{ }
};
MODULE_DEVICE_TABLE(i2c, es8389_i2c_id);

View File

@ -1557,9 +1557,9 @@ static void fs210x_i2c_remove(struct i2c_client *client)
}
static const struct i2c_device_id fs210x_i2c_id[] = {
{ "fs2104" },
{ "fs2105s" },
{}
{ .name = "fs2104" },
{ .name = "fs2105s" },
{ }
};
MODULE_DEVICE_TABLE(i2c, fs210x_i2c_id);

View File

@ -1133,7 +1133,7 @@ static int isabelle_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id isabelle_i2c_id[] = {
{ "isabelle" },
{ .name = "isabelle" },
{ }
};
MODULE_DEVICE_TABLE(i2c, isabelle_i2c_id);

View File

@ -128,7 +128,7 @@ static int lm4857_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id lm4857_i2c_id[] = {
{ "lm4857" },
{ .name = "lm4857" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm4857_i2c_id);

View File

@ -1443,7 +1443,7 @@ static int lm49453_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id lm49453_i2c_id[] = {
{ "lm49453" },
{ .name = "lm49453" },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm49453_i2c_id);

View File

@ -213,7 +213,7 @@ static int max9768_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id max9768_i2c_id[] = {
{ "max9768" },
{ .name = "max9768" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max9768_i2c_id);

View File

@ -1722,8 +1722,8 @@ static const struct snd_soc_component_driver soc_component_dev_max98088 = {
};
static const struct i2c_device_id max98088_i2c_id[] = {
{ "max98088", MAX98088 },
{ "max98089", MAX98089 },
{ .name = "max98088", .driver_data = MAX98088 },
{ .name = "max98089", .driver_data = MAX98089 },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98088_i2c_id);

View File

@ -2572,8 +2572,8 @@ static const struct regmap_config max98090_regmap = {
};
static const struct i2c_device_id max98090_i2c_id[] = {
{ "max98090", MAX98090 },
{ "max98091", MAX98091 },
{ .name = "max98090", .driver_data = MAX98090 },
{ .name = "max98091", .driver_data = MAX98091 },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98090_i2c_id);

View File

@ -2109,7 +2109,7 @@ static const struct snd_soc_component_driver soc_component_dev_max98095 = {
};
static const struct i2c_device_id max98095_i2c_id[] = {
{ "max98095", MAX98095 },
{ .name = "max98095", .driver_data = MAX98095 },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98095_i2c_id);

View File

@ -400,7 +400,7 @@ static int max98371_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98371_i2c_id[] = {
{ "max98371" },
{ .name = "max98371" },
{ }
};

View File

@ -576,8 +576,8 @@ static int max98373_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98373_i2c_id[] = {
{ "max98373"},
{ },
{ .name = "max98373" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98373_i2c_id);

View File

@ -977,8 +977,8 @@ static int max98388_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98388_i2c_id[] = {
{ "max98388"},
{ },
{ .name = "max98388" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98388_i2c_id);

View File

@ -1096,8 +1096,8 @@ static int max98390_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98390_i2c_id[] = {
{ "max98390"},
{},
{ .name = "max98390" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98390_i2c_id);

View File

@ -1871,9 +1871,9 @@ static int max98396_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98396_i2c_id[] = {
{ "max98396", CODEC_TYPE_MAX98396},
{ "max98397", CODEC_TYPE_MAX98397},
{ },
{ .name = "max98396", .driver_data = CODEC_TYPE_MAX98396 },
{ .name = "max98397", .driver_data = CODEC_TYPE_MAX98397 },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98396_i2c_id);

View File

@ -321,7 +321,7 @@ static int max9850_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max9850_i2c_id[] = {
{ "max9850" },
{ .name = "max9850" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max9850_i2c_id);

View File

@ -363,7 +363,7 @@ MODULE_DEVICE_TABLE(of, max98504_of_match);
#endif
static const struct i2c_device_id max98504_i2c_id[] = {
{ "max98504" },
{ .name = "max98504" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98504_i2c_id);

View File

@ -734,8 +734,8 @@ static int max98520_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98520_i2c_id[] = {
{ "max98520"},
{ },
{ .name = "max98520" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98520_i2c_id);

View File

@ -709,7 +709,7 @@ static void max9860_remove(struct i2c_client *i2c)
}
static const struct i2c_device_id max9860_i2c_id[] = {
{ "max9860", },
{ .name = "max9860" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max9860_i2c_id);

View File

@ -689,7 +689,7 @@ static int max9867_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max9867_i2c_id[] = {
{ "max9867" },
{ .name = "max9867" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max9867_i2c_id);

View File

@ -151,7 +151,7 @@ static int max9877_i2c_probe(struct i2c_client *client)
}
static const struct i2c_device_id max9877_i2c_id[] = {
{ "max9877" },
{ .name = "max9877" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max9877_i2c_id);

View File

@ -617,7 +617,7 @@ static int max98925_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98925_i2c_id[] = {
{ "max98925" },
{ .name = "max98925" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98925_i2c_id);

View File

@ -565,7 +565,7 @@ static int max98926_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id max98926_i2c_id[] = {
{ "max98926" },
{ .name = "max98926" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98926_i2c_id);

View File

@ -873,8 +873,8 @@ static void max98927_i2c_remove(struct i2c_client *i2c)
}
static const struct i2c_device_id max98927_i2c_id[] = {
{ "max98927"},
{ },
{ .name = "max98927" },
{ }
};
MODULE_DEVICE_TABLE(i2c, max98927_i2c_id);

View File

@ -573,7 +573,7 @@ static int ml26124_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id ml26124_i2c_id[] = {
{ "ml26124" },
{ .name = "ml26124" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ml26124_i2c_id);

View File

@ -557,8 +557,8 @@ static const struct of_device_id __maybe_unused mt6660_of_id[] = {
MODULE_DEVICE_TABLE(of, mt6660_of_id);
static const struct i2c_device_id mt6660_i2c_id[] = {
{"mt6660" },
{},
{ .name = "mt6660" },
{ }
};
MODULE_DEVICE_TABLE(i2c, mt6660_i2c_id);

View File

@ -877,7 +877,7 @@ static int nau8325_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8325_i2c_ids[] = {
{ "nau8325" },
{ .name = "nau8325" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8325_i2c_ids);

View File

@ -965,7 +965,7 @@ static int nau8540_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8540_i2c_ids[] = {
{ "nau8540" },
{ .name = "nau8540" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8540_i2c_ids);

View File

@ -896,9 +896,9 @@ static int nau8810_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8810_i2c_id[] = {
{ "nau8810" },
{ "nau8812" },
{ "nau8814" },
{ .name = "nau8810" },
{ .name = "nau8812" },
{ .name = "nau8814" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8810_i2c_id);

View File

@ -1968,7 +1968,7 @@ static int nau8821_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8821_i2c_ids[] = {
{ "nau8821" },
{ .name = "nau8821" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8821_i2c_ids);

View File

@ -1193,7 +1193,7 @@ static int nau8822_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8822_i2c_id[] = {
{ "nau8822" },
{ .name = "nau8822" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8822_i2c_id);

View File

@ -2020,7 +2020,7 @@ static int nau8824_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8824_i2c_ids[] = {
{ "nau8824" },
{ .name = "nau8824" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8824_i2c_ids);

View File

@ -2931,7 +2931,7 @@ static int nau8825_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id nau8825_i2c_ids[] = {
{ "nau8825" },
{ .name = "nau8825" },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8825_i2c_ids);

View File

@ -454,8 +454,8 @@ static int ntp8835_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id ntp8835_i2c_id[] = {
{ "ntp8835" },
{}
{ .name = "ntp8835" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ntp8835_i2c_id);

View File

@ -370,8 +370,8 @@ static int ntp8918_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id ntp8918_i2c_id[] = {
{ "ntp8918" },
{}
{ .name = "ntp8918" },
{ }
};
MODULE_DEVICE_TABLE(i2c, ntp8918_i2c_id);

View File

@ -290,8 +290,8 @@ static const struct snd_soc_component_driver soc_component_dev_pcm1681 = {
};
static const struct i2c_device_id pcm1681_i2c_id[] = {
{"pcm1681"},
{}
{ .name = "pcm1681" },
{ }
};
MODULE_DEVICE_TABLE(i2c, pcm1681_i2c_id);

View File

@ -41,7 +41,7 @@ MODULE_DEVICE_TABLE(of, pcm1789_of_match);
#endif
static const struct i2c_device_id pcm1789_i2c_ids[] = {
{ "pcm1789" },
{ .name = "pcm1789" },
{ }
};
MODULE_DEVICE_TABLE(i2c, pcm1789_i2c_ids);

View File

@ -38,7 +38,7 @@ MODULE_DEVICE_TABLE(of, pcm179x_of_match);
#endif
static const struct i2c_device_id pcm179x_i2c_ids[] = {
{ "pcm179x" },
{ .name = "pcm179x" },
{ }
};
MODULE_DEVICE_TABLE(i2c, pcm179x_i2c_ids);

View File

@ -23,10 +23,10 @@ static const struct of_device_id pcm186x_of_match[] = {
MODULE_DEVICE_TABLE(of, pcm186x_of_match);
static const struct i2c_device_id pcm186x_i2c_id[] = {
{ "pcm1862", PCM1862 },
{ "pcm1863", PCM1863 },
{ "pcm1864", PCM1864 },
{ "pcm1865", PCM1865 },
{ .name = "pcm1862", .driver_data = PCM1862 },
{ .name = "pcm1863", .driver_data = PCM1863 },
{ .name = "pcm1864", .driver_data = PCM1864 },
{ .name = "pcm1865", .driver_data = PCM1865 },
{ }
};
MODULE_DEVICE_TABLE(i2c, pcm186x_i2c_id);

Some files were not shown because too many files have changed in this diff Show More