UPSTREAM: linux_spi: Stop messing up the units of SPI speed

'speed' is stored in Hz, so rename the variable to 'speed_hz' to
clarify any potential confusion. Also, when printing the speed after
setting it with an ioctl, convert it to kHz to match the units given
in the message.

Corresponding to flashrom svn r1769.

Original-Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Original-Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
(cherry picked from commit 69dd09d8818b338743e796276c9d39ff78ed5065)

BUG=b:153598437
BRANCH=none
TEST=builds

Tested-by: Nikolai Artemiev <nartemiev@chromium.org>
Signed-off-by: Nikolai Artemiev <nartemiev@chromium.org>
Change-Id: I356211f8d08906ba276d4e300f523cb5251fc99a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2209943
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
1 file changed