From 13d6ceb4c4fe1e9688e19b15b123b1830c596cf1 Mon Sep 17 00:00:00 2001 From: Frans Klaver Date: Wed, 24 Sep 2014 09:55:22 +0200 Subject: [PATCH] tty: omap-serial: pull out calculation from baud_is_mode16 To determine the correct divisor, we need to know the difference between the desired baud rate and the actual baud rate. The calculation for this difference is implemented twice within omap_serial_baud_is_mode16(). Pull out the calculation for easier maintenance. While at it, remove the CamelCasing from the variable names. Signed-off-by: Frans Klaver Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed