]> git.baikalelectronics.ru Git - kernel.git/commit
cyclades: avoid addresses recomputation
authorJiri Slaby <jirislaby@gmail.com>
Sat, 19 Sep 2009 20:13:13 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:13 +0000 (13:13 -0700)
commit11ef3873c349e94bc36ff13464abec597833592c
treefbde46003a58550c3312ce7732a23213985e81fa
parente6eeb817915614a033292ae12950660ca2eec8aa
cyclades: avoid addresses recomputation

Don't fetch firmware address and recompute channel control on each
port access. Precompute the values on init and use them later all
the time.

The same for board control.

This simplify code and improves readability.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/cyclades.c
include/linux/cyclades.h