dp83640: correct the periodic output frequency
authorRichard Cochran <richardcochran@gmail.com>
Thu, 20 Mar 2014 21:21:57 +0000 (22:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Mar 2014 18:21:14 +0000 (14:21 -0400)
commit564ca56e45469f48703b1de72ac64d143d18d0ee
treea11d91831d130e9d7c9ab4c7211de0d1f976ef1a
parentfbf4b9349f8b830ce5ff11c5804bdfa8b1176a7e
dp83640: correct the periodic output frequency

The phyter driver incorrectly feeds the value of the period into what
is in fact a pulse width register, resulting in the actual period
being twice the dialed value. This patch fixes the issue and renames a
variable to make the code at bit more clear.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c