]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i2c: ocores: enable atomic xfers
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 3 Apr 2019 12:40:16 +0000 (14:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 16 Apr 2019 11:08:15 +0000 (13:08 +0200)
The driver already has the routine in place, tie it to the new callback.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ocores.c

index 1b99f467aae0042f91b9957937ea6f94d729f69a..c3dabee0aa359e781f1e9d4b6fbcbca06955c043 100644 (file)
@@ -442,6 +442,7 @@ static u32 ocores_func(struct i2c_adapter *adap)
 
 static struct i2c_algorithm ocores_algorithm = {
        .master_xfer = ocores_xfer,
+       .master_xfer_atomic = ocores_xfer_polling,
        .functionality = ocores_func,
 };