staging: fbtft: fb_sh1106: use own implementation of write_register
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 2 Mar 2017 20:03:44 +0000 (21:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 16:31:56 +0000 (17:31 +0100)
commit82472b86186194458c9549516e53becbc33e941d
treedcc7c6cff97cf619000ea2da7faf2a3ef241397d
parent18c6142168d061916f7020b80b2f746d4323b65d
staging: fbtft: fb_sh1106: use own implementation of write_register

The default implementation of write_register keeps DC low for the first
byte only. SH1106 requires DC to be low for all bytes of a multi-byte
command. To deal with this limitation we currently use a separate call
to write_reg for each single command byte what is not really efficient.

Therefore override the default implementation of write_register with an
own one which keeps DC low for all bytes.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_sh1106.c