]> 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)
commit863e8a2388641f3e2afefc6ae8eb4147d87b10f8
treef7ac0d4e0deda3bd913b139f179a2d78852125e0
parentfa6eba99d91e90897c1b3ed25ef2373cb6e17cdd
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