diff options
| author | Michael Tretter <m.tretter@pengutronix.de> | 2017-08-17 12:43:07 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-21 10:52:59 +0200 |
| commit | b0f2aa9a59821f72bfce8d6625570b134f2ab8e6 (patch) | |
| tree | ffd5a4dbb0a140f67fb81903674f6c8b3b4eab8d /lib/dynamic_debug.c | |
| parent | 0739a93a0a9b9d2af1bdc904fd2a485ec71926a1 (diff) | |
drm/debugfs: fix plain echo to connector "force" attribute
[ Upstream commit c704b17071c4dc571dca3af4e4151dac51de081a ]
Using plain echo to set the "force" connector attribute fails with
-EINVAL, because echo appends a newline to the output.
Replace strcmp with sysfs_streq to also accept strings that end with a
newline.
v2: use sysfs_streq instead of stripping trailing whitespace
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170817104307.17124-1-m.tretter@pengutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
