greybus: uart: Update line coding settings only when needed
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 20 Apr 2016 18:47:20 +0000 (20:47 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 01:33:47 +0000 (10:33 +0900)
commitb4b1b7eda9fe0d5a399d9095b2e8d5657726538c
treec664e733a85e9bd206bd872518c693206e9dfa7d
parent41d514020f4844905f349cd51476d03db254317a
greybus: uart: Update line coding settings only when needed

The check for line coding changed should use memcmp and not memcpy.

Testing done: trivial

Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/uart.c