diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-08-09 15:14:41 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-08-11 13:58:06 +0200 |
commit | 39df52ddd932244f2cc08ce520ad064b7dc8c278 (patch) | |
tree | c7960726e1c1c7bb289a0e705e82e7833f9109b2 /drivers/gpio/gpio-idio-16.c | |
parent | gpio: xra1403: remove redundant of_match_ptr() (diff) | |
download | linux-39df52ddd932244f2cc08ce520ad064b7dc8c278.tar.xz linux-39df52ddd932244f2cc08ce520ad064b7dc8c278.zip |
gpio: sim: use sysfs_streq() and avoid an strdup()
When comparing strings passed to us from configfs, we can pass the page
argument directly to sysfs_streq() and avoid manual string trimming.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-idio-16.c')
0 files changed, 0 insertions, 0 deletions