summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/core.c
diff options
context:
space:
mode:
authorDan Bogdan Nechita2016-02-23 10:48:45 +0100
committerGreg Kroah-Hartman2016-03-02 01:55:13 +0100
commit1bb850a1b7f68b66361e658e334f9fdf8231f17d (patch)
treed7bffea3f7cb600631c93615783c32e482a0c937 /drivers/nvmem/core.c
parentdrivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors (diff)
downloadkernel-qcow2-linux-1bb850a1b7f68b66361e658e334f9fdf8231f17d.tar.gz
kernel-qcow2-linux-1bb850a1b7f68b66361e658e334f9fdf8231f17d.tar.xz
kernel-qcow2-linux-1bb850a1b7f68b66361e658e334f9fdf8231f17d.zip
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: Dan Bogdan Nechita <dan.bogdan.nechita@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/core.c')
0 files changed, 0 insertions, 0 deletions