File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -790,14 +790,16 @@ static int rzv2m_gpio_direction_input(struct gpio_chip *chip,
790
790
return 0 ;
791
791
}
792
792
793
- static void rzv2m_gpio_set (struct gpio_chip * chip , unsigned int offset ,
794
- int value )
793
+ static int rzv2m_gpio_set (struct gpio_chip * chip , unsigned int offset ,
794
+ int value )
795
795
{
796
796
struct rzv2m_pinctrl * pctrl = gpiochip_get_data (chip );
797
797
u32 port = RZV2M_PIN_ID_TO_PORT (offset );
798
798
u8 bit = RZV2M_PIN_ID_TO_PIN (offset );
799
799
800
800
rzv2m_writel_we (pctrl -> base + DO (port ), bit , !!value );
801
+
802
+ return 0 ;
801
803
}
802
804
803
805
static int rzv2m_gpio_direction_output (struct gpio_chip * chip ,
@@ -955,7 +957,7 @@ static int rzv2m_gpio_register(struct rzv2m_pinctrl *pctrl)
955
957
chip -> direction_input = rzv2m_gpio_direction_input ;
956
958
chip -> direction_output = rzv2m_gpio_direction_output ;
957
959
chip -> get = rzv2m_gpio_get ;
958
- chip -> set = rzv2m_gpio_set ;
960
+ chip -> set_rv = rzv2m_gpio_set ;
959
961
chip -> label = name ;
960
962
chip -> parent = pctrl -> dev ;
961
963
chip -> owner = THIS_MODULE ;
You can’t perform that action at this time.
0 commit comments