staging: sm750fb: refactor setDisplayControl function
authorMike Rapoport <mike.rapoport@gmail.com>
Wed, 10 Feb 2016 16:34:06 +0000 (18:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:52:37 +0000 (19:52 -0800)
commitb117b637da2be83c8173b53986b51ad5b8169d8d
tree073bd1f3ac2ab6884bd3dd3bdd4c10580dc278a8
parent9bd2c86b5a4d4a038c626d39a02d4dc71ac577ff
staging: sm750fb: refactor setDisplayControl function

The enable/disbable sequence in setDisplayControl function is duplicated
for primary and secondary display controllers. The function can be
refactored so that the common part of register access will be shared for
both controllers.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_display.c