i2c: cleanup i2c_register_adapter() by refactoring recovery init
authorWolfram Sang <wsa-dev@sang-engineering.com>
Sat, 9 Jul 2016 04:34:59 +0000 (13:34 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 14 Jul 2016 13:07:03 +0000 (22:07 +0900)
commitd3b11d8380d05e3121e2694af0dd95e7f63399bd
treee1ac11c768a9727d4296e5b753d09440922f63b4
parentce0dffafd403e7824ae78a806d08c04ff8112e79
i2c: cleanup i2c_register_adapter() by refactoring recovery init

Move recovery init to a seperate function to let have
i2c_register_adapter() less lines and to avoid goto and a label.
Refactor string handling there for consistency and to save some bytes.

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