serial: max310x: Fix sparse warnings
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 15 Feb 2014 10:59:01 +0000 (14:59 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:16:21 +0000 (12:16 -0800)
commit0fd927f578e96fe56f1acbfe97e6c71e6c3a4b11
tree11f74d430ba22dc804b26132d095835fa83dab15
parentb2b2d6067db89afac3185de6e869766aa259731d
serial: max310x: Fix sparse warnings

sparse warnings: (new ones prefixed by >>)

>> drivers/tty/serial/max310x.c:906:45: sparse: incorrect type in argument 2 (different address spaces)
 drivers/tty/serial/max310x.c:906:45: expected void const [noderef] <asn:1>*from
 drivers/tty/serial/max310x.c:906:45: got struct serial_rs485 *<noident>
>> drivers/tty/serial/max310x.c:938:35: sparse: incorrect type in argument 1 (different address spaces)
 drivers/tty/serial/max310x.c:938:35: expected void [noderef] <asn:1>*to
 drivers/tty/serial/max310x.c:938:35: got struct serial_rs485 *<noident>

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c