aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2019-04-03 12:40:16 +0000
committerWolfram Sang <[email protected]>2019-04-16 11:08:15 +0000
commit3d11a12ece85bc29a80a111a0f8b5498f9831d9f (patch)
treee473ee481390447b917288a6e730591e487cc837 /drivers/i2c
parenti2c: ocores: refactor setup for polling (diff)
downloadkernel-3d11a12ece85bc29a80a111a0f8b5498f9831d9f.tar.gz
kernel-3d11a12ece85bc29a80a111a0f8b5498f9831d9f.zip
i2c: ocores: enable atomic xfers
The driver already has the routine in place, tie it to the new callback. Signed-off-by: Wolfram Sang <[email protected]> Cc: Andrew Lunn <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-ocores.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 1b99f467aae0..c3dabee0aa35 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -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,
};