Repository navigation
Commit 8d898fd
committed
pinctrl: mvebu: count unnamed controls and allocate name buffer
pinctrl-mvebu allows SoCs to pass unnamed controls that will get an
auto-generated name of "mpp<PIN#>". Currently, we are allocating name
buffers on a per-control basis while looping over passed controls.
This counts the total number of unnamed controls and allocates a
global name buffer instead. The new buffer is then used while assigning
controls to pinctrl groups later.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>1 parent 38dbfb5 commit 8d898fd
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
601 | 604 | | |
602 | 605 | | |
603 | 606 | | |
| |||
660 | 663 | | |
661 | 664 | | |
662 | 665 | | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
673 | 677 | | |
674 | 678 | | |
675 | 679 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
680 | 687 | | |
681 | 688 | | |
| 689 | + | |
| 690 | + | |
682 | 691 | | |
683 | 692 | | |
684 | 693 | | |
| |||
692 | 701 | | |
693 | 702 | | |
694 | 703 | | |
| 704 | + | |
695 | 705 | | |
| 706 | + | |
| 707 | + | |
696 | 708 | | |
697 | 709 | | |
698 | 710 | | |
699 | 711 | | |
700 | 712 | | |
701 | | - | |
| 713 | + | |
702 | 714 | | |
703 | 715 | | |
| 716 | + | |
| 717 | + | |
704 | 718 | | |
705 | 719 | | |
706 | 720 | | |
| |||
0 commit comments