Staging: fbtft: Use a struct to describe each LCD controller
authorFabio Falzoi <fabio.falzoi84@gmail.com>
Sun, 2 Aug 2015 20:30:14 +0000 (22:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Aug 2015 22:10:58 +0000 (15:10 -0700)
commitdbb588a4f7bf5dd8ad871f5d5dec228295cc4b7e
tree2182d392764a0975c07cd7ca53d69fee636be9be
parent25e66320167117d428d2c99076be5e5de557b7d1
Staging: fbtft: Use a struct to describe each LCD controller

Use a struct flexfb_lcd_controller to holds chip properties, instead of
relying on a long 'if - else if' chain.
This allows to:
- use a simple linear search to verify if a certain LCD controller
model is supported or not.
- add support for a new LCD chip controller simply defining a new
flexfb_lcd_controller struct.

Signed-off-by: Fabio Falzoi <fabio.falzoi84@gmail.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/flexfb.c
This page took 0.024435 seconds and 5 git commands to generate.