Skip to content

Commit ba2a2c3

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
ASoC: codecs: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9723cab commit ba2a2c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+168
-168
lines changed

sound/soc/codecs/adau1372-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static int adau1372_i2c_probe(struct i2c_client *client)
2121
}
2222

2323
static const struct i2c_device_id adau1372_i2c_ids[] = {
24-
{ "adau1372", 0 },
24+
{ "adau1372" },
2525
{ }
2626
};
2727
MODULE_DEVICE_TABLE(i2c, adau1372_i2c_ids);

sound/soc/codecs/adau1373.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ static int adau1373_i2c_probe(struct i2c_client *client)
14961496
}
14971497

14981498
static const struct i2c_device_id adau1373_i2c_id[] = {
1499-
{ "adau1373", 0 },
1499+
{ "adau1373" },
15001500
{ }
15011501
};
15021502
MODULE_DEVICE_TABLE(i2c, adau1373_i2c_id);

sound/soc/codecs/adau1701.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,10 @@ static int adau1701_i2c_probe(struct i2c_client *client)
862862
}
863863

864864
static const struct i2c_device_id adau1701_i2c_id[] = {
865-
{ "adau1401", 0 },
866-
{ "adau1401a", 0 },
867-
{ "adau1701", 0 },
868-
{ "adau1702", 0 },
865+
{ "adau1401" },
866+
{ "adau1401a" },
867+
{ "adau1701" },
868+
{ "adau1702" },
869869
{ }
870870
};
871871
MODULE_DEVICE_TABLE(i2c, adau1701_i2c_id);

sound/soc/codecs/adau7118-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static const struct of_device_id adau7118_of_match[] = {
6868
MODULE_DEVICE_TABLE(of, adau7118_of_match);
6969

7070
static const struct i2c_device_id adau7118_id[] = {
71-
{"adau7118", 0},
71+
{"adau7118"},
7272
{}
7373
};
7474
MODULE_DEVICE_TABLE(i2c, adau7118_id);

sound/soc/codecs/adav803.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "adav80x.h"
1515

1616
static const struct i2c_device_id adav803_id[] = {
17-
{ "adav803", 0 },
17+
{ "adav803" },
1818
{ }
1919
};
2020
MODULE_DEVICE_TABLE(i2c, adav803_id);

sound/soc/codecs/ak4118.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ MODULE_DEVICE_TABLE(of, ak4118_of_match);
396396
#endif
397397

398398
static const struct i2c_device_id ak4118_id_table[] = {
399-
{ "ak4118", 0 },
399+
{ "ak4118" },
400400
{}
401401
};
402402
MODULE_DEVICE_TABLE(i2c, ak4118_id_table);

sound/soc/codecs/ak4535.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static int ak4535_i2c_probe(struct i2c_client *i2c)
430430
}
431431

432432
static const struct i2c_device_id ak4535_i2c_id[] = {
433-
{ "ak4535", 0 },
433+
{ "ak4535" },
434434
{ }
435435
};
436436
MODULE_DEVICE_TABLE(i2c, ak4535_i2c_id);

sound/soc/codecs/ak4641.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static void ak4641_i2c_remove(struct i2c_client *i2c)
619619
}
620620

621621
static const struct i2c_device_id ak4641_i2c_id[] = {
622-
{ "ak4641", 0 },
622+
{ "ak4641" },
623623
{ }
624624
};
625625
MODULE_DEVICE_TABLE(i2c, ak4641_i2c_id);

sound/soc/codecs/ak4671.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ static int ak4671_i2c_probe(struct i2c_client *client)
646646
}
647647

648648
static const struct i2c_device_id ak4671_i2c_id[] = {
649-
{ "ak4671", 0 },
649+
{ "ak4671" },
650650
{ }
651651
};
652652
MODULE_DEVICE_TABLE(i2c, ak4671_i2c_id);

sound/soc/codecs/cs35l32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ MODULE_DEVICE_TABLE(of, cs35l32_of_match);
558558

559559

560560
static const struct i2c_device_id cs35l32_id[] = {
561-
{"cs35l32", 0},
561+
{"cs35l32"},
562562
{}
563563
};
564564

0 commit comments

Comments
 (0)