Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: int0002: use new GPIO line value setter callbacks

struct gpio_chip now has callbacks for setting line values that return
an integer, allowing to indicate failures. Convert the driver to using
them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20250408-gpiochip-set-rv-platform-x86-v1-2-6f67e76a722c@linaro.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Bartosz Golaszewski and committed by
Ilpo Järvinen
e0071ad2 29ba3b60

+4 -3
+4 -3
drivers/platform/x86/intel/int0002_vgpio.c
··· 65 65 return 0; 66 66 } 67 67 68 - static void int0002_gpio_set(struct gpio_chip *chip, unsigned int offset, 69 - int value) 68 + static int int0002_gpio_set(struct gpio_chip *chip, unsigned int offset, 69 + int value) 70 70 { 71 + return 0; 71 72 } 72 73 73 74 static int int0002_gpio_direction_output(struct gpio_chip *chip, ··· 193 192 chip->parent = dev; 194 193 chip->owner = THIS_MODULE; 195 194 chip->get = int0002_gpio_get; 196 - chip->set = int0002_gpio_set; 195 + chip->set_rv = int0002_gpio_set; 197 196 chip->direction_input = int0002_gpio_get; 198 197 chip->direction_output = int0002_gpio_direction_output; 199 198 chip->base = -1;