mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
ASoC: rockchip: Move MODULE_DEVICE_TABLE next to the table itself
By convention MODULE_DEVICE_TABLE() immediately follows the ID table it exports, because this is easier to read and verify. It also makes more sense since #ifdef for ACPI or OF could hide both of them. Most of the privers already have this correctly placed, so adjust the missing ones. No functional impact. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260505102803.183455-4-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a28d17fdd3
commit
7ed0e11bea
|
|
@ -606,6 +606,7 @@ static const struct of_device_id rockchip_sound_of_match[] = {
|
|||
{ .compatible = "rockchip,rk3399-gru-sound", },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rockchip_sound_of_match);
|
||||
|
||||
static struct platform_driver rockchip_sound_driver = {
|
||||
.probe = rockchip_sound_probe,
|
||||
|
|
@ -624,4 +625,3 @@ MODULE_AUTHOR("Xing Zheng <zhengxing@rock-chips.com>");
|
|||
MODULE_DESCRIPTION("Rockchip ASoC Machine Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:" DRV_NAME);
|
||||
MODULE_DEVICE_TABLE(of, rockchip_sound_of_match);
|
||||
|
|
|
|||
|
|
@ -662,6 +662,7 @@ static const struct of_device_id rockchip_i2s_match[] __maybe_unused = {
|
|||
{ .compatible = "rockchip,rv1126-i2s", },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rockchip_i2s_match);
|
||||
|
||||
static int rockchip_i2s_init_dai(struct rk_i2s_dev *i2s, struct resource *res,
|
||||
struct snd_soc_dai_driver **dp)
|
||||
|
|
@ -878,4 +879,3 @@ MODULE_DESCRIPTION("ROCKCHIP IIS ASoC Interface");
|
|||
MODULE_AUTHOR("jianqun <jay.xu@rock-chips.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:" DRV_NAME);
|
||||
MODULE_DEVICE_TABLE(of, rockchip_i2s_match);
|
||||
|
|
|
|||
|
|
@ -1040,6 +1040,7 @@ static const struct of_device_id rockchip_i2s_tdm_match[] = {
|
|||
{ .compatible = "rockchip,rv1126-i2s-tdm", .data = &rv1126_i2s_soc_data },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rockchip_i2s_tdm_match);
|
||||
|
||||
static const struct snd_soc_dai_driver i2s_tdm_dai = {
|
||||
.ops = &rockchip_i2s_tdm_dai_ops,
|
||||
|
|
@ -1442,4 +1443,3 @@ MODULE_DESCRIPTION("ROCKCHIP I2S/TDM ASoC Interface");
|
|||
MODULE_AUTHOR("Sugar Zhang <sugar.zhang@rock-chips.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:" DRV_NAME);
|
||||
MODULE_DEVICE_TABLE(of, rockchip_i2s_tdm_match);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user