Home
last modified time | relevance | path

Searched hist:ba0294df2dbdc006ffbf037da28bba64e9f6d709 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpio/
H A Dgpio-sim.cdiff ba0294df2dbdc006ffbf037da28bba64e9f6d709 Sat Aug 12 13:57:48 CDT 2023 Bartosz Golaszewski <bartosz.golaszewski@linaro.org> gpio: sim: replace memmove() + strstrip() with skip_spaces() + strim()

Turns out we can avoid the memmove() by using skip_spaces() and strim().
We did that in gpio-consumer, let's do it in gpio-sim.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>