mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
regulator: rpi-panel-attiny: don't double-check GPIO range
GPIO core already checks GPIO ranges, there's no need to check it again in the set() callback. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://patch.msgid.link/20250408-gpiochip-set-rv-regulator-v1-1-a18b6154b31a@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0af2f6be1b
commit
06bab1f101
|
|
@ -216,9 +216,6 @@ static void attiny_gpio_set(struct gpio_chip *gc, unsigned int off, int val)
|
|||
struct attiny_lcd *state = gpiochip_get_data(gc);
|
||||
u8 last_val;
|
||||
|
||||
if (off >= NUM_GPIO)
|
||||
return;
|
||||
|
||||
mutex_lock(&state->lock);
|
||||
|
||||
last_val = attiny_get_port_state(state, mappings[off].reg);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user