tty: serial: samsung: add byte-order aware bit functions
authorMatthew Leach <matthew@mattleach.net>
Wed, 22 Jun 2016 16:57:03 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:04:12 +0000 (14:04 -0700)
commitbbb5ff91225dfbf3e5c27619552e41661048ed61
treea675a32e89dca885304a9b34c581290f59515289
parente37697b3f75464dbf86ecb0f480eb11581cc75d2
tty: serial: samsung: add byte-order aware bit functions

This driver makes use of the __set_bit() and __clear_bit() functions.
When running under big-endian, these functions don't convert the bit
indexes when working with peripheral registers, leading to the
incorrect bits being set and cleared when running big-endian.

Add two new driver functions for setting and clearing bits that are
byte-order aware.

Signed-off-by: Matthew Leach <matthew@mattleach.net>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c
drivers/tty/serial/samsung.h