]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
i2c: rcar: refactor probe function a little
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 8 Dec 2015 09:37:47 +0000 (10:37 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Dec 2015 09:51:08 +0000 (10:51 +0100)
commitf9c9d31bdd37970d2aaaac794d93691170008f5a
tree9619164721cd41d6c512c45769f82a9b4d33a07a
parente1dba01ca620bb0b3864d5237c1c597d9e012ebf
i2c: rcar: refactor probe function a little

The probe function is a little bit messy, something here, something
there. Rework it so that there is some order: first init the private
structure, then the adapter, then do HW init. This also allows us to
remove the device argument of the clock calculation function, because it
now can be deduced from the private structure. Also, shorten some lines
where possible. This is a preparation for further refactoring.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c