Commit 9b413e3
mfd: da9062: Simplify obtaining I2C match data
Simplify probe() by replacing of_device_get_match_data() and ID lookup for
retrieving match data by i2c_get_match_data().
Some minor cleanups:
* Remove the trailing comma in the terminator entry for the ID
table making code robust against (theoretical) misrebases or other
similar things where the new entry goes _after_ the termination without
the compiler noticing.
* Move OF table near to the user.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20231204124507.124758-1-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>1 parent 41673c6 commit 9b413e3
1 file changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | 591 | | |
599 | 592 | | |
600 | | - | |
601 | 593 | | |
602 | 594 | | |
603 | 595 | | |
| |||
611 | 603 | | |
612 | 604 | | |
613 | 605 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
| 606 | + | |
618 | 607 | | |
619 | 608 | | |
620 | 609 | | |
| |||
714 | 703 | | |
715 | 704 | | |
716 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
717 | 713 | | |
718 | 714 | | |
719 | 715 | | |
720 | | - | |
| 716 | + | |
721 | 717 | | |
722 | 718 | | |
723 | 719 | | |
| |||
0 commit comments