misc: ad525x_dpot: Fix the enabling of the "otpXen" attributes
authorDan Bogdan Nechita <dan.bogdan.nechita@gmail.com>
Tue, 23 Feb 2016 09:48:45 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 00:55:13 +0000 (16:55 -0800)
commit1bb850a1b7f68b66361e658e334f9fdf8231f17d
treed7bffea3f7cb600631c93615783c32e482a0c937
parentf3df53e4d70b5736368a8fe8aa1bb70c1cb1f577
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>
drivers/misc/ad525x_dpot.c