Skip to content
Unverified Commit 41ecad2c authored by David Fries's avatar David Fries Committed by Mark Brown
Browse files

spi: spidev_test: Warn when the mode is not the requested mode



Print a warning if the device mode doesn't match the requested mode.
The user doesn't enter the mode in hex so it isn't obvious when
setting the mode succeeds that the mode isn't the requested mode.  The
kernel logs a message, it will be more visible if the test also prints
a warning.  I was testing --quad, which is unsupported, but doesn't
cause the mode request to fail.

Signed-off-by: default avatarDavid Fries <David@Fries.net>
Link: https://lore.kernel.org/r/YqbNnSGtWHe/GG7w@spacedout.fries.net


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 845d3fd8
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