Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
61c65a8b cd33f216

+2 -2
+2 -2
tools/testing/selftests/gpio/gpio-sim.sh
··· 152 152 local PULL=$4 153 153 local DEVNAME=`configfs_dev_name $DEV` 154 154 local CHIPNAME=`configfs_chip_name $DEV $BANK` 155 - local SYSFSPATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio$OFFSET/pull" 155 + local SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio$OFFSET/pull" 156 156 157 - echo $PULL > $SYSFSPATH || fail "Unable to set line pull in sysfs" 157 + echo $PULL > $SYSFS_PATH || fail "Unable to set line pull in sysfs" 158 158 } 159 159 160 160 # Load the gpio-sim module. This will pull in configfs if needed too.