]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: at91: segregate master mode specific code from probe and init func
authorJuergen Fitschen <me@jue.yt>
Fri, 22 Feb 2019 09:25:20 +0000 (10:25 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 24 Mar 2019 21:41:51 +0000 (22:41 +0100)
commit1fffc079d39b39c9c3f6aee86321e7534c219341
treef7ac0d4e0deda3bd913b139f179a2d78852125e0
parent2b72e05868525b45366dacee7c28d2838848bc2c
i2c: at91: segregate master mode specific code from probe and init func

In order to implement slave mode support for the at91 hardware we have to
segregate all master mode specific function parts from the general parts.
The upcoming slave mode patch will call its sepcific probe resp. init
function instead of the master mode functions after the shared general
code has been executed.

This concept has been influenced by the i2c-designware driver.

Signed-off-by: Juergen Fitschen <me@jue.yt>
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-at91.c