| .. | .. |
|---|
| 274 | 274 | .confops = &foo_pconf_ops, |
|---|
| 275 | 275 | }; |
|---|
| 276 | 276 | |
|---|
| 277 | | -Since some controllers have special logic for handling entire groups of pins |
|---|
| 278 | | -they can exploit the special whole-group pin control function. The |
|---|
| 279 | | -pin_config_group_set() callback is allowed to return the error code -EAGAIN, |
|---|
| 280 | | -for groups it does not want to handle, or if it just wants to do some |
|---|
| 281 | | -group-level handling and then fall through to iterate over all pins, in which |
|---|
| 282 | | -case each individual pin will be treated by separate pin_config_set() calls as |
|---|
| 283 | | -well. |
|---|
| 284 | | - |
|---|
| 285 | | - |
|---|
| 286 | 277 | Interaction with the GPIO subsystem |
|---|
| 287 | 278 | =================================== |
|---|
| 288 | 279 | |
|---|
| .. | .. |
|---|
| 647 | 638 | } |
|---|
| 648 | 639 | |
|---|
| 649 | 640 | static int foo_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, |
|---|
| 650 | | - unsigned ** const pins, |
|---|
| 651 | | - unsigned * const num_pins) |
|---|
| 641 | + const unsigned ** pins, |
|---|
| 642 | + unsigned * num_pins) |
|---|
| 652 | 643 | { |
|---|
| 653 | 644 | *pins = (unsigned *) foo_groups[selector].pins; |
|---|
| 654 | 645 | *num_pins = foo_groups[selector].num_pins; |
|---|
| .. | .. |
|---|
| 714 | 705 | { |
|---|
| 715 | 706 | u8 regbit = (1 << selector + group); |
|---|
| 716 | 707 | |
|---|
| 717 | | - writeb((readb(MUX)|regbit), MUX) |
|---|
| 708 | + writeb((readb(MUX)|regbit), MUX); |
|---|
| 718 | 709 | return 0; |
|---|
| 719 | 710 | } |
|---|
| 720 | 711 | |
|---|