Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1bb850a1 authored by Dan Bogdan Nechita's avatar Dan Bogdan Nechita Committed by Greg Kroah-Hartman
Browse files

misc: ad525x_dpot: Fix the enabling of the "otpXen" attributes



Currently writing the attributes with "echo" will result in comparing:
"enabled\n" with "enabled\0" and attribute is always set to false.

Use the sysfs_streq() instead because it treats both NUL and
new-line-then-NUL as equivalent string terminations.

Signed-off-by: default avatarDan Bogdan Nechita <dan.bogdan.nechita@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3df53e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment