Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: palmas: Move OF table closer to its consumer

Move OF table near to the user.

While at it, arrange compatible and data in single line.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230831183153.63750-4-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Biju Das and committed by
Lee Jones
a17e0bc6 93ec3d0e

+8 -17
+8 -17
drivers/mfd/palmas.c
··· 481 481 .irq_chip = &tps65917_irq_chip, 482 482 }; 483 483 484 - static const struct of_device_id of_palmas_match_tbl[] = { 485 - { 486 - .compatible = "ti,palmas", 487 - .data = &palmas_data, 488 - }, 489 - { 490 - .compatible = "ti,tps659038", 491 - .data = &tps659038_data, 492 - }, 493 - { 494 - .compatible = "ti,tps65917", 495 - .data = &tps65917_data, 496 - }, 497 - { } 498 - }; 499 - MODULE_DEVICE_TABLE(of, of_palmas_match_tbl); 500 - 501 484 static int palmas_i2c_probe(struct i2c_client *i2c) 502 485 { 503 486 struct palmas *palmas; ··· 689 706 palmas_dev = NULL; 690 707 } 691 708 } 709 + 710 + static const struct of_device_id of_palmas_match_tbl[] = { 711 + { .compatible = "ti,palmas", .data = &palmas_data }, 712 + { .compatible = "ti,tps659038", .data = &tps659038_data }, 713 + { .compatible = "ti,tps65917", .data = &tps65917_data }, 714 + { } 715 + }; 716 + MODULE_DEVICE_TABLE(of, of_palmas_match_tbl); 692 717 693 718 static const struct i2c_device_id palmas_i2c_id[] = { 694 719 { "palmas", },