i2c: octeon: Cleanup i2c-octeon driver
authorJan Glauber <jglauber@cavium.com>
Fri, 18 Mar 2016 08:46:26 +0000 (09:46 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 18 Mar 2016 14:50:14 +0000 (15:50 +0100)
commitdfcd821218c958dbc3e74566ccf5f362f517e279
tree5beacc3fdc1f1e9fc4e9f09ffcb93ae0885351c7
parent7724fd0462b18e6be684b92ed44d258d73751d0c
i2c: octeon: Cleanup i2c-octeon driver

Cleanup only without functional change.

- removed DRV_VERSION
- defines: use defines instead of plain values,
  use BIT_ULL macro, add comments
- rename waitqueue return value to time_left
- sort local variables by length
- fix indentation and whitespace errors
- make function return void if the result is not used
  (octeon_i2c_stop, octeon_i2c_set_clock)
- remove debug code from octeon_i2c_stop
- renamed some functions for readability
- update copyright

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon.c