]> 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)
commitf998150d5b73f8f983bba55108dee932d52872b7
treec535e3f6ef7e594d808fa3924712cd4a77753cf7
parent1b1dfd842e9473849365d99082bc3b9ab633aedf
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