File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -873,13 +873,6 @@ static int pinctrl_gpio_direction(unsigned gpio, bool input)
873873 return ret ;
874874}
875875
876- /* This function is deprecated and will be removed. Don't use. */
877- int pinctrl_gpio_direction_input (unsigned gpio )
878- {
879- return pinctrl_gpio_direction (gpio , true);
880- }
881- EXPORT_SYMBOL_GPL (pinctrl_gpio_direction_input );
882-
883876/**
884877 * pinctrl_gpio_direction_input_new() - request a GPIO pin to go into input mode
885878 * @gc: GPIO chip structure from the GPIO subsystem
@@ -891,7 +884,7 @@ EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
891884 */
892885int pinctrl_gpio_direction_input_new (struct gpio_chip * gc , unsigned int offset )
893886{
894- return pinctrl_gpio_direction_input (gc -> base + offset );
887+ return pinctrl_gpio_direction (gc -> base + offset , true );
895888}
896889EXPORT_SYMBOL_GPL (pinctrl_gpio_direction_input_new );
897890
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ struct pinctrl_state;
2929bool pinctrl_gpio_can_use_line_new (struct gpio_chip * gc , unsigned int offset );
3030int pinctrl_gpio_request_new (struct gpio_chip * gc , unsigned int offset );
3131void pinctrl_gpio_free_new (struct gpio_chip * gc , unsigned int offset );
32- int pinctrl_gpio_direction_input (unsigned gpio );
3332int pinctrl_gpio_direction_input_new (struct gpio_chip * gc ,
3433 unsigned int offset );
3534int pinctrl_gpio_direction_output (unsigned gpio );
@@ -87,11 +86,6 @@ pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset)
8786{
8887}
8988
90- static inline int pinctrl_gpio_direction_input (unsigned gpio )
91- {
92- return 0 ;
93- }
94-
9589static inline int
9690pinctrl_gpio_direction_input_new (struct gpio_chip * gc , unsigned int offset )
9791{
You can’t perform that action at this time.
0 commit comments