mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 00:39:30 -04:00
media: solo6x10: remove unneeded GPIO direction setters
GPIO core already handles missing direction_input/output() callbacks. The ones in this driver also effectively return magic numbers which is not optimal either (the number accidentally corresponds with -EPERM which is different from the number GPIOLIB returns and so inconsistent). Just remove them. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
13518ae320
commit
94bf84c7fe
@@ -116,18 +116,6 @@ static int solo_gpiochip_get_direction(struct gpio_chip *chip,
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int solo_gpiochip_direction_input(struct gpio_chip *chip,
|
||||
unsigned int offset)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int solo_gpiochip_direction_output(struct gpio_chip *chip,
|
||||
unsigned int offset, int value)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int solo_gpiochip_get(struct gpio_chip *chip,
|
||||
unsigned int offset)
|
||||
{
|
||||
@@ -167,8 +155,6 @@ int solo_gpio_init(struct solo_dev *solo_dev)
|
||||
solo_dev->gpio_dev.can_sleep = 0;
|
||||
|
||||
solo_dev->gpio_dev.get_direction = solo_gpiochip_get_direction;
|
||||
solo_dev->gpio_dev.direction_input = solo_gpiochip_direction_input;
|
||||
solo_dev->gpio_dev.direction_output = solo_gpiochip_direction_output;
|
||||
solo_dev->gpio_dev.get = solo_gpiochip_get;
|
||||
solo_dev->gpio_dev.set = solo_gpiochip_set;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user