From: Andy Shevchenko Date: Tue, 11 Apr 2023 17:15:21 +0000 (+0300) Subject: selftests: gpio: gpio-sim: Use same variable name for sysfs pathname X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=61c65a8b50c22ef17839df6f342df44a5631400a;p=linux.git selftests: gpio: gpio-sim: Use same variable name for sysfs pathname SYSFS_PATH can be used locally and globally, especially that has the same content. Signed-off-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/tools/testing/selftests/gpio/gpio-sim.sh b/tools/testing/selftests/gpio/gpio-sim.sh index 9f539d454ee4d..9f0df867b5097 100755 --- a/tools/testing/selftests/gpio/gpio-sim.sh +++ b/tools/testing/selftests/gpio/gpio-sim.sh @@ -152,9 +152,9 @@ sysfs_set_pull() { local PULL=$4 local DEVNAME=`configfs_dev_name $DEV` local CHIPNAME=`configfs_chip_name $DEV $BANK` - local SYSFSPATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio$OFFSET/pull" + local SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio$OFFSET/pull" - echo $PULL > $SYSFSPATH || fail "Unable to set line pull in sysfs" + echo $PULL > $SYSFS_PATH || fail "Unable to set line pull in sysfs" } # Load the gpio-sim module. This will pull in configfs if needed too.