]> Git Repo - J-u-boot.git/commit
fpga: altera: Turn the switches into table lookup
authorMarek Vasut <[email protected]>
Tue, 16 Sep 2014 19:17:51 +0000 (21:17 +0200)
committerMarek Vasut <[email protected]>
Mon, 6 Oct 2014 15:31:42 +0000 (17:31 +0200)
commit2012f238bd4383904e898cfc26c9fd433af835aa
tree474ea7b36ab220e2b2fe65ba9eae901dfe863f75
parentd44ef7ffbfef26f71d5811006f00fc82e941fe98
fpga: altera: Turn the switches into table lookup

Add a table of FPGA family with matching functions associated with
it and make all the code just look up the family in that table and
call the associated function instead of the horrible switch voodoo
which was duplicated all over the place.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Chin Liang See <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Pavel Machek <[email protected]>
Acked-by: Pavel Machek <[email protected]>
drivers/fpga/altera.c
This page took 0.033031 seconds and 4 git commands to generate.