mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
i2c: ocores: reword according to newest specification
Change the wording of this driver wrt. the newest I2C v7 and SMBus 3.2 specifications and replace "master/slave" with more appropriate terms. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
parent
3fdf633523
commit
5a078b4f1f
@ -444,8 +444,8 @@ static u32 ocores_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static struct i2c_algorithm ocores_algorithm = {
|
||||
.master_xfer = ocores_xfer,
|
||||
.master_xfer_atomic = ocores_xfer_polling,
|
||||
.xfer = ocores_xfer,
|
||||
.xfer_atomic = ocores_xfer_polling,
|
||||
.functionality = ocores_func,
|
||||
};
|
||||
|
||||
@ -682,13 +682,13 @@ static int ocores_i2c_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
if (irq == -ENXIO) {
|
||||
ocores_algorithm.master_xfer = ocores_xfer_polling;
|
||||
ocores_algorithm.xfer = ocores_xfer_polling;
|
||||
} else {
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
}
|
||||
|
||||
if (ocores_algorithm.master_xfer != ocores_xfer_polling) {
|
||||
if (ocores_algorithm.xfer != ocores_xfer_polling) {
|
||||
ret = devm_request_any_context_irq(&pdev->dev, irq,
|
||||
ocores_isr, 0,
|
||||
pdev->name, i2c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user