···10241025foo_switch()1026{1027- struct pinmux pmx;10281029 /* Enable on position A */1030 pmx = pinmux_get(&device, "spi0-pos-A");
···10241025foo_switch()1026{1027+ struct pinmux *pmx;10281029 /* Enable on position A */1030 pmx = pinmux_get(&device, "spi0-pos-A");
+2-7
drivers/pinctrl/pinmux.c
···53 * @dev: the device using this pinmux54 * @usecount: the number of active users of this mux setting, used to keep55 * track of nested use cases56- * @pins: an array of discrete physical pins used in this mapping, taken57- * from the global pin enumeration space (copied from pinmux map)58- * @num_pins: the number of pins in this mapping array, i.e. the number of59- * elements in .pins so we can iterate over that array (copied from60- * pinmux map)61 * @pctldev: pin control device handling this pinmux62 * @func_selector: the function selector for the pinmux device handling63 * this pinmux···404}405406/**407- * acquire_pins() - acquire all the pins for a certain funcion on a pinmux408 * @pctldev: the device to take the pins on409 * @func_selector: the function selector to acquire the pins for410 * @group_selector: the group selector containing the pins to acquire···450451/**452 * release_pins() - release pins taken by earlier acquirement453- * @pctldev: the device to free the pinx on454 * @group_selector: the group selector containing the pins to free455 */456static void release_pins(struct pinctrl_dev *pctldev,
···53 * @dev: the device using this pinmux54 * @usecount: the number of active users of this mux setting, used to keep55 * track of nested use cases0000056 * @pctldev: pin control device handling this pinmux57 * @func_selector: the function selector for the pinmux device handling58 * this pinmux···409}410411/**412+ * acquire_pins() - acquire all the pins for a certain function on a pinmux413 * @pctldev: the device to take the pins on414 * @func_selector: the function selector to acquire the pins for415 * @group_selector: the group selector containing the pins to acquire···455456/**457 * release_pins() - release pins taken by earlier acquirement458+ * @pctldev: the device to free the pins on459 * @group_selector: the group selector containing the pins to free460 */461static void release_pins(struct pinctrl_dev *pctldev,