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)
commitf0eefdc30e55e761facf645bd1be1339b21c30e6
treefbde46003a58550c3312ce7732a23213985e81fa
parentf0737579424dd2c4e68bdd54c718455a3f42c7b5
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