spi: altera: Use struct-based register access
authorMarek Vasut <marex@denx.de>
Wed, 22 Oct 2014 19:55:58 +0000 (21:55 +0200)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Mon, 27 Oct 2014 17:07:02 +0000 (22:37 +0530)
commiteef67029d664d75766f0b8b88d065a4c3b1c8335
tree0543bac469866677d231a309a7bf24d48cd33046
parent0ce4af99c07acebf4fce9a91f1099d2460629293
spi: altera: Use struct-based register access

Zap the offset-based register access and use the struct-based one
as this is the preferred method.

No functional change, but there are some line-over-80 problems in
the driver, which will be addressed later.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Pavel Machek <pavel@denx.de>
Acked-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/altera_spi.c