File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1189,13 +1189,16 @@ static int max310x_gpio_get(struct gpio_chip *chip, unsigned int offset)
11891189 return !!((val >> 4 ) & (1 << (offset % 4 )));
11901190}
11911191
1192- static void max310x_gpio_set (struct gpio_chip * chip , unsigned int offset , int value )
1192+ static int max310x_gpio_set (struct gpio_chip * chip , unsigned int offset ,
1193+ int value )
11931194{
11941195 struct max310x_port * s = gpiochip_get_data (chip );
11951196 struct uart_port * port = & s -> p [offset / 4 ].port ;
11961197
11971198 max310x_port_update (port , MAX310X_GPIODATA_REG , 1 << (offset % 4 ),
11981199 value ? 1 << (offset % 4 ) : 0 );
1200+
1201+ return 0 ;
11991202}
12001203
12011204static int max310x_gpio_direction_input (struct gpio_chip * chip , unsigned int offset )
@@ -1411,7 +1414,7 @@ static int max310x_probe(struct device *dev, const struct max310x_devtype *devty
14111414 s -> gpio .direction_input = max310x_gpio_direction_input ;
14121415 s -> gpio .get = max310x_gpio_get ;
14131416 s -> gpio .direction_output = max310x_gpio_direction_output ;
1414- s -> gpio .set = max310x_gpio_set ;
1417+ s -> gpio .set_rv = max310x_gpio_set ;
14151418 s -> gpio .set_config = max310x_gpio_set_config ;
14161419 s -> gpio .base = -1 ;
14171420 s -> gpio .ngpio = devtype -> nr * 4 ;
You can’t perform that action at this time.
0 commit comments