mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
gpio: xilinx: convert set_multiple() to the new API as well
The patch converting the driver to using new GPIO line value setters
only converted the set() callback and missed set_multiple(). Fix it now.
Fixes: 1919ea19a4
("gpio: xilinx: use new GPIO line value setter callbacks")
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20250717131116.53878-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
74896eae7e
commit
906b955c60
1 changed files with 5 additions and 3 deletions
|
@ -175,8 +175,8 @@ static int xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
|
|||
* This function writes the specified values into the specified signals of the
|
||||
* GPIO devices.
|
||||
*/
|
||||
static void xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
|
||||
unsigned long *bits)
|
||||
static int xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
|
||||
unsigned long *bits)
|
||||
{
|
||||
DECLARE_BITMAP(hw_mask, 64);
|
||||
DECLARE_BITMAP(hw_bits, 64);
|
||||
|
@ -196,6 +196,8 @@ static void xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
|
|||
bitmap_copy(chip->state, state, 64);
|
||||
|
||||
raw_spin_unlock_irqrestore(&chip->gpio_lock, flags);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -605,7 +607,7 @@ static int xgpio_probe(struct platform_device *pdev)
|
|||
chip->gc.set_rv = xgpio_set;
|
||||
chip->gc.request = xgpio_request;
|
||||
chip->gc.free = xgpio_free;
|
||||
chip->gc.set_multiple = xgpio_set_multiple;
|
||||
chip->gc.set_multiple_rv = xgpio_set_multiple;
|
||||
|
||||
chip->gc.label = dev_name(dev);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue