| 276 | } |
| 277 | |
| 278 | void print_gpio_groups(struct pci_dev *const sb) |
| 279 | { |
| 280 | size_t community_count; |
| 281 | const struct gpio_community *const *communities; |
| 282 | size_t pad_stepping; |
| 283 | |
| 284 | communities = get_gpio_communities(sb, &community_count, &pad_stepping); |
| 285 | |
| 286 | if (!communities) |
| 287 | return; |
| 288 | |
| 289 | pcr_init(sb); |
| 290 | |
| 291 | printf("\n============= GPIOS =============\n\n"); |
| 292 | |
| 293 | for (; community_count; --community_count) |
| 294 | print_gpio_community(*communities++, pad_stepping); |
| 295 | } |
no test coverage detected