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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 14:40:26 +0000 (16:40 +0200)
commit49661be5ab43f9aa161deb06edd0dea90849519c
treedfb3c92d3a4739d6b4d29ad08b14af7ab0cdeb05
parent082041c05f308ceb5f8f337b90da40c1e9fd0f85
i2c: dev: don't start function name with 'return'

commit 72a71f869c95dc11b73f09fe18c593d4a0618c3f upstream.

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>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/i2c-dev.c