]> git.baikalelectronics.ru Git - kernel.git/commit
auxdisplay: ht16k33: use le16_to_cpup() to fetch LE16 data
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 1 Apr 2017 17:27:14 +0000 (10:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:48:20 +0000 (17:48 +0200)
commit210452119068d68fe62f20619a805a6c0287c87f
treea6f083178b50a9e4d8e23267ed0c569bb4957332
parent530ba050fca4a72b5f60ab1fb37014fc4fc4e031
auxdisplay: ht16k33: use le16_to_cpup() to fetch LE16 data

The data read from the device is 3 little-endian words, so let's
annotate them as such and use le16_to_cpu() to convert them to host
endianness - it might turn out to be a bit more performant, and it
expresses the conversion more clearly.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/auxdisplay/ht16k33.c