]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: dev: don't start function name with 'return'
authorWolfram Sang <wsa@the-dreams.de>
Fri, 27 May 2016 11:13:01 +0000 (13:13 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 27 May 2016 11:13:01 +0000 (13:13 +0200)
commit2cef0d5d4c59f3c418b422933f9e249953a9a0d9
treec535e3f6ef7e594d808fa3924712cd4a77753cf7
parentb6d0cdf7d13679cd0a7db5166c3516ee8dfd7ac5
i2c: dev: don't start function name with 'return'

I stumbled multiple times over 'return_i2c_dev', especially before the
actual 'return res'. It makes the code hard to read, so reanme the
function to 'put_i2c_dev' which also better matches 'get_free_i2c_dev'.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-dev.c