]> git.sur5r.net Git - u-boot/commit
spi: altera: Clean up the use of variable d
authorMarek Vasut <marex@denx.de>
Wed, 22 Oct 2014 19:56:02 +0000 (21:56 +0200)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Mon, 27 Oct 2014 17:07:03 +0000 (22:37 +0530)
commitbc76b821f05fa4cdfca406cba975657de7a8e9f8
tree3c8b9720f7be4e40e23ae9e89dad16d21c326c6e
parent80d73338080c83e17fbf3f844052ec71d03ecd13
spi: altera: Clean up the use of variable d

The variable d is used in rather questionable way. Rework the code
a bit so it's clearer what it does. Also, rename the variable from
d to data to make it's name less mysterious. Finally, change it's
data type to uint32_t , since it's accessed as a 32bit number.

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>
Cc: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Acked-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/altera_spi.c