@@ -588,8 +588,8 @@ static int tca6507_blink_set(struct led_classdev *led_cdev,
588
588
}
589
589
590
590
#ifdef CONFIG_GPIOLIB
591
- static void tca6507_gpio_set_value (struct gpio_chip * gc ,
592
- unsigned offset , int val )
591
+ static int tca6507_gpio_set_value (struct gpio_chip * gc , unsigned int offset ,
592
+ int val )
593
593
{
594
594
struct tca6507_chip * tca = gpiochip_get_data (gc );
595
595
unsigned long flags ;
@@ -604,13 +604,14 @@ static void tca6507_gpio_set_value(struct gpio_chip *gc,
604
604
spin_unlock_irqrestore (& tca -> lock , flags );
605
605
if (tca -> reg_set )
606
606
schedule_work (& tca -> work );
607
+
608
+ return 0 ;
607
609
}
608
610
609
611
static int tca6507_gpio_direction_output (struct gpio_chip * gc ,
610
612
unsigned offset , int val )
611
613
{
612
- tca6507_gpio_set_value (gc , offset , val );
613
- return 0 ;
614
+ return tca6507_gpio_set_value (gc , offset , val );
614
615
}
615
616
616
617
static int tca6507_probe_gpios (struct device * dev ,
@@ -636,7 +637,7 @@ static int tca6507_probe_gpios(struct device *dev,
636
637
tca -> gpio .base = -1 ;
637
638
tca -> gpio .owner = THIS_MODULE ;
638
639
tca -> gpio .direction_output = tca6507_gpio_direction_output ;
639
- tca -> gpio .set = tca6507_gpio_set_value ;
640
+ tca -> gpio .set_rv = tca6507_gpio_set_value ;
640
641
tca -> gpio .parent = dev ;
641
642
err = devm_gpiochip_add_data (dev , & tca -> gpio , tca );
642
643
if (err ) {
0 commit comments