Skip to content

Commit 61c65a8

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
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 <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent cd33f21 commit 61c65a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/gpio/gpio-sim.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ sysfs_set_pull() {
152152
local PULL=$4
153153
local DEVNAME=`configfs_dev_name $DEV`
154154
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"
156156

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"
158158
}
159159

160160
# Load the gpio-sim module. This will pull in configfs if needed too.

0 commit comments

Comments
 (0)