]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: Use proper u32 variables in c_can_write_msg_object()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 Apr 2014 08:13:21 +0000 (08:13 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:09:01 +0000 (22:09 +0200)
commitf58a89af332ebdb752a121565a4f63ae1a3ec79d
treefb45ee82298a136ffed5b1f108095084bdb2c327
parentf8cc1792a90896660a0e6cf76324531f41dc5b2a
can: c_can: Use proper u32 variables in c_can_write_msg_object()

Instead of obfuscating the code by artificial 16 bit splits use the
proper 32 bit assignments and split the result when writing to the
interface.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c