hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/Documentation/driver-api/pinctl.rst
....@@ -274,15 +274,6 @@
274274 .confops = &foo_pconf_ops,
275275 };
276276
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
-
286277 Interaction with the GPIO subsystem
287278 ===================================
288279
....@@ -647,8 +638,8 @@
647638 }
648639
649640 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)
652643 {
653644 *pins = (unsigned *) foo_groups[selector].pins;
654645 *num_pins = foo_groups[selector].num_pins;
....@@ -714,7 +705,7 @@
714705 {
715706 u8 regbit = (1 << selector + group);
716707
717
- writeb((readb(MUX)|regbit), MUX)
708
+ writeb((readb(MUX)|regbit), MUX);
718709 return 0;
719710 }
720711