]> asedeno.scripts.mit.edu Git - linux.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)
commit07345ab220d80ac7edf4b6bfa4b43800dfbd2c97
treef7ac0d4e0deda3bd913b139f179a2d78852125e0
parent94e290b0e9a6c360a5660c480c1ba996d892c650
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