mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-10-10 18:44:13 +10:00
i2c-for-6.16-rc3
- subsystem: convert drivers to use recent callbacks of struct i2c_algorithm A typical after-rc1 cleanup, which I couldn't send in time for rc2 - tegra: fix YAML conversion of device tree bindings - k1: re-add a check which got lost during upstreaming -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmhYAkYACgkQFA3kzBSg KbZ0gQ//S4Nro0WvZS/4Ph/bbroJ+rceh+83px4PCXP/Yulb9OpRFV//EBk+rQhh rQQoxPw72f7l6z63m2eI17KN6zrh3VZ7xOp4fddoS9L0lZorY7hehrcn/W2K7P7R prJnuVhRod0MMmwSqY4o5keLwkaKmFP9xjkEwcaBKB6nr/k8do9e4tgG6dZdPZHr aPDA4+K1CtPILyDNUKhzb59wh+9tuRjj5gnyOa/nPjkvTB3PIyPaYLcdVuVPoX06 1EdbFbhFPlo3fas+Kk4H+LEXOXKWZw6wiAR8QV0Nn55mHCymlnpUs2MjaXHOfpyj f4K6/5qBBOgBdfqApZyGMLffABiLI7rvAjcZ2UhMn6qMi1PmCTGGE541YN6NUcG4 2xnpuHK3m8AocJaqr0/85uM8NWwYQzs6yXJZfsyKbTKQUGg+tSwp++3wQ9K7PgT9 c4W1oVNXflfethOmSBrcK+a6pzXYxwLy/fP0blXTZWQfYr6Z+mkYGLckupSd1nwC rRzaUaTWqHgFaRVmldz8E+nyGAiDkXmhzwSMa1efytCHCluxK/ECll+IFA9h7lsd l6Yyz+EX09OEfqtVsAX8mXSnA1zyzPBmX12zNBoZB8Dp6H6rptdbeZvbp6gwD62e F2cBZn9CPPSeHhblmQdqAAX8JinhHaRkjNJYwfIjlpwx6c0Zn74= =9DqX -----END PGP SIGNATURE----- Merge tag 'i2c-for-6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux Pull i2c fixes from Wolfram Sang: - subsystem: convert drivers to use recent callbacks of struct i2c_algorithm A typical after-rc1 cleanup, which I couldn't send in time for rc2 - tegra: fix YAML conversion of device tree bindings - k1: re-add a check which got lost during upstreaming * tag 'i2c-for-6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: k1: check for transfer error i2c: use inclusive callbacks in struct i2c_algorithm dt-bindings: i2c: nvidia,tegra20-i2c: Specify the required properties
This commit is contained in:
commit
b67ec63901
@ -97,7 +97,10 @@ properties:
|
||||
|
||||
resets:
|
||||
items:
|
||||
- description: module reset
|
||||
- description:
|
||||
Module reset. This property is optional for controllers in Tegra194,
|
||||
Tegra234 etc where an internal software reset is available as an
|
||||
alternative.
|
||||
|
||||
reset-names:
|
||||
items:
|
||||
@ -116,6 +119,13 @@ properties:
|
||||
- const: rx
|
||||
- const: tx
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupts
|
||||
- clocks
|
||||
- clock-names
|
||||
|
||||
allOf:
|
||||
- $ref: /schemas/i2c/i2c-controller.yaml
|
||||
- if:
|
||||
@ -169,6 +179,18 @@ allOf:
|
||||
properties:
|
||||
power-domains: false
|
||||
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- nvidia,tegra194-i2c
|
||||
then:
|
||||
required:
|
||||
- resets
|
||||
- reset-names
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
|
@ -619,8 +619,8 @@ static u32 bit_func(struct i2c_adapter *adap)
|
||||
/* -----exported algorithm data: ------------------------------------- */
|
||||
|
||||
const struct i2c_algorithm i2c_bit_algo = {
|
||||
.master_xfer = bit_xfer,
|
||||
.master_xfer_atomic = bit_xfer_atomic,
|
||||
.xfer = bit_xfer,
|
||||
.xfer_atomic = bit_xfer_atomic,
|
||||
.functionality = bit_func,
|
||||
};
|
||||
EXPORT_SYMBOL(i2c_bit_algo);
|
||||
|
@ -361,8 +361,8 @@ static u32 pca_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm pca_algo = {
|
||||
.master_xfer = pca_xfer,
|
||||
.functionality = pca_func,
|
||||
.xfer = pca_xfer,
|
||||
.functionality = pca_func,
|
||||
};
|
||||
|
||||
static unsigned int pca_probe_chip(struct i2c_adapter *adap)
|
||||
|
@ -389,8 +389,8 @@ static u32 pcf_func(struct i2c_adapter *adap)
|
||||
|
||||
/* exported algorithm data: */
|
||||
static const struct i2c_algorithm pcf_algo = {
|
||||
.master_xfer = pcf_xfer,
|
||||
.functionality = pcf_func,
|
||||
.xfer = pcf_xfer,
|
||||
.functionality = pcf_func,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -179,7 +179,7 @@ static u32 i2c_amd_func(struct i2c_adapter *a)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm i2c_amd_algorithm = {
|
||||
.master_xfer = i2c_amd_xfer,
|
||||
.xfer = i2c_amd_xfer,
|
||||
.functionality = i2c_amd_func,
|
||||
};
|
||||
|
||||
|
@ -814,11 +814,11 @@ static int aspeed_i2c_unreg_slave(struct i2c_client *client)
|
||||
#endif /* CONFIG_I2C_SLAVE */
|
||||
|
||||
static const struct i2c_algorithm aspeed_i2c_algo = {
|
||||
.master_xfer = aspeed_i2c_master_xfer,
|
||||
.functionality = aspeed_i2c_functionality,
|
||||
.xfer = aspeed_i2c_master_xfer,
|
||||
.functionality = aspeed_i2c_functionality,
|
||||
#if IS_ENABLED(CONFIG_I2C_SLAVE)
|
||||
.reg_slave = aspeed_i2c_reg_slave,
|
||||
.unreg_slave = aspeed_i2c_unreg_slave,
|
||||
.reg_slave = aspeed_i2c_reg_slave,
|
||||
.unreg_slave = aspeed_i2c_unreg_slave,
|
||||
#endif /* CONFIG_I2C_SLAVE */
|
||||
};
|
||||
|
||||
|
@ -739,8 +739,8 @@ static u32 at91_twi_func(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm at91_twi_algorithm = {
|
||||
.master_xfer = at91_twi_xfer,
|
||||
.functionality = at91_twi_func,
|
||||
.xfer = at91_twi_xfer,
|
||||
.functionality = at91_twi_func,
|
||||
};
|
||||
|
||||
static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
|
||||
|
@ -706,7 +706,7 @@ static int axxia_i2c_unreg_slave(struct i2c_client *slave)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm axxia_i2c_algo = {
|
||||
.master_xfer = axxia_i2c_xfer,
|
||||
.xfer = axxia_i2c_xfer,
|
||||
.functionality = axxia_i2c_func,
|
||||
.reg_slave = axxia_i2c_reg_slave,
|
||||
.unreg_slave = axxia_i2c_unreg_slave,
|
||||
|
@ -1041,7 +1041,7 @@ static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave)
|
||||
}
|
||||
|
||||
static struct i2c_algorithm bcm_iproc_algo = {
|
||||
.master_xfer = bcm_iproc_i2c_xfer,
|
||||
.xfer = bcm_iproc_i2c_xfer,
|
||||
.functionality = bcm_iproc_i2c_functionality,
|
||||
.reg_slave = bcm_iproc_i2c_reg_slave,
|
||||
.unreg_slave = bcm_iproc_i2c_unreg_slave,
|
||||
|
@ -1231,12 +1231,12 @@ static int cdns_unreg_slave(struct i2c_client *slave)
|
||||
#endif
|
||||
|
||||
static const struct i2c_algorithm cdns_i2c_algo = {
|
||||
.master_xfer = cdns_i2c_master_xfer,
|
||||
.master_xfer_atomic = cdns_i2c_master_xfer_atomic,
|
||||
.functionality = cdns_i2c_func,
|
||||
.xfer = cdns_i2c_master_xfer,
|
||||
.xfer_atomic = cdns_i2c_master_xfer_atomic,
|
||||
.functionality = cdns_i2c_func,
|
||||
#if IS_ENABLED(CONFIG_I2C_SLAVE)
|
||||
.reg_slave = cdns_reg_slave,
|
||||
.unreg_slave = cdns_unreg_slave,
|
||||
.reg_slave = cdns_reg_slave,
|
||||
.unreg_slave = cdns_unreg_slave,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -331,8 +331,8 @@ static u32 cgbc_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm cgbc_i2c_algorithm = {
|
||||
.master_xfer = cgbc_i2c_xfer,
|
||||
.functionality = cgbc_i2c_func,
|
||||
.xfer = cgbc_i2c_xfer,
|
||||
.functionality = cgbc_i2c_func,
|
||||
};
|
||||
|
||||
static struct i2c_algo_cgbc_data cgbc_i2c_algo_data[] = {
|
||||
|
@ -690,7 +690,7 @@ static u32 pch_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm pch_algorithm = {
|
||||
.master_xfer = pch_i2c_xfer,
|
||||
.xfer = pch_i2c_xfer,
|
||||
.functionality = pch_i2c_func
|
||||
};
|
||||
|
||||
|
@ -351,10 +351,10 @@ static int em_i2c_unreg_slave(struct i2c_client *slave)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm em_i2c_algo = {
|
||||
.master_xfer = em_i2c_xfer,
|
||||
.xfer = em_i2c_xfer,
|
||||
.functionality = em_i2c_func,
|
||||
.reg_slave = em_i2c_reg_slave,
|
||||
.unreg_slave = em_i2c_unreg_slave,
|
||||
.reg_slave = em_i2c_reg_slave,
|
||||
.unreg_slave = em_i2c_unreg_slave,
|
||||
};
|
||||
|
||||
static int em_i2c_probe(struct platform_device *pdev)
|
||||
|
@ -879,9 +879,9 @@ static u32 exynos5_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm exynos5_i2c_algorithm = {
|
||||
.master_xfer = exynos5_i2c_xfer,
|
||||
.master_xfer_atomic = exynos5_i2c_xfer_atomic,
|
||||
.functionality = exynos5_i2c_func,
|
||||
.xfer = exynos5_i2c_xfer,
|
||||
.xfer_atomic = exynos5_i2c_xfer_atomic,
|
||||
.functionality = exynos5_i2c_func,
|
||||
};
|
||||
|
||||
static int exynos5_i2c_probe(struct platform_device *pdev)
|
||||
|
@ -184,11 +184,11 @@ static int gxp_i2c_unreg_slave(struct i2c_client *slave)
|
||||
#endif
|
||||
|
||||
static const struct i2c_algorithm gxp_i2c_algo = {
|
||||
.master_xfer = gxp_i2c_master_xfer,
|
||||
.xfer = gxp_i2c_master_xfer,
|
||||
.functionality = gxp_i2c_func,
|
||||
#if IS_ENABLED(CONFIG_I2C_SLAVE)
|
||||
.reg_slave = gxp_i2c_reg_slave,
|
||||
.unreg_slave = gxp_i2c_unreg_slave,
|
||||
.reg_slave = gxp_i2c_reg_slave,
|
||||
.unreg_slave = gxp_i2c_unreg_slave,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -1143,7 +1143,7 @@ static u32 img_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm img_i2c_algo = {
|
||||
.master_xfer = img_i2c_xfer,
|
||||
.xfer = img_i2c_xfer,
|
||||
.functionality = img_i2c_func,
|
||||
};
|
||||
|
||||
|
@ -1268,10 +1268,10 @@ static u32 lpi2c_imx_func(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm lpi2c_imx_algo = {
|
||||
.master_xfer = lpi2c_imx_xfer,
|
||||
.functionality = lpi2c_imx_func,
|
||||
.reg_target = lpi2c_imx_register_target,
|
||||
.unreg_target = lpi2c_imx_unregister_target,
|
||||
.xfer = lpi2c_imx_xfer,
|
||||
.functionality = lpi2c_imx_func,
|
||||
.reg_target = lpi2c_imx_register_target,
|
||||
.unreg_target = lpi2c_imx_unregister_target,
|
||||
};
|
||||
|
||||
static const struct of_device_id lpi2c_imx_of_match[] = {
|
||||
|
@ -1692,11 +1692,11 @@ static u32 i2c_imx_func(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm i2c_imx_algo = {
|
||||
.master_xfer = i2c_imx_xfer,
|
||||
.master_xfer_atomic = i2c_imx_xfer_atomic,
|
||||
.xfer = i2c_imx_xfer,
|
||||
.xfer_atomic = i2c_imx_xfer_atomic,
|
||||
.functionality = i2c_imx_func,
|
||||
.reg_slave = i2c_imx_reg_slave,
|
||||
.unreg_slave = i2c_imx_unreg_slave,
|
||||
.reg_slave = i2c_imx_reg_slave,
|
||||
.unreg_slave = i2c_imx_unreg_slave,
|
||||
};
|
||||
|
||||
static int i2c_imx_probe(struct platform_device *pdev)
|
||||
|
@ -477,7 +477,7 @@ static int spacemit_i2c_xfer(struct i2c_adapter *adapt, struct i2c_msg *msgs, in
|
||||
|
||||
ret = spacemit_i2c_wait_bus_idle(i2c);
|
||||
if (!ret)
|
||||
spacemit_i2c_xfer_msg(i2c);
|
||||
ret = spacemit_i2c_xfer_msg(i2c);
|
||||
else if (ret < 0)
|
||||
dev_dbg(i2c->dev, "i2c transfer error: %d\n", ret);
|
||||
else
|
||||
|
@ -500,7 +500,7 @@ static u32 ki2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm ki2c_algo = {
|
||||
.master_xfer = ki2c_xfer,
|
||||
.xfer = ki2c_xfer,
|
||||
.functionality = ki2c_func,
|
||||
};
|
||||
|
||||
|
@ -1048,7 +1048,7 @@ static u32 pci1xxxx_i2c_get_funcs(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm pci1xxxx_i2c_algo = {
|
||||
.master_xfer = pci1xxxx_i2c_xfer,
|
||||
.xfer = pci1xxxx_i2c_xfer,
|
||||
.functionality = pci1xxxx_i2c_get_funcs,
|
||||
};
|
||||
|
||||
|
@ -448,8 +448,8 @@ static u32 meson_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm meson_i2c_algorithm = {
|
||||
.master_xfer = meson_i2c_xfer,
|
||||
.master_xfer_atomic = meson_i2c_xfer_atomic,
|
||||
.xfer = meson_i2c_xfer,
|
||||
.xfer_atomic = meson_i2c_xfer_atomic,
|
||||
.functionality = meson_i2c_func,
|
||||
};
|
||||
|
||||
|
@ -526,7 +526,7 @@ static int mchp_corei2c_smbus_xfer(struct i2c_adapter *adap, u16 addr, unsigned
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm mchp_corei2c_algo = {
|
||||
.master_xfer = mchp_corei2c_xfer,
|
||||
.xfer = mchp_corei2c_xfer,
|
||||
.functionality = mchp_corei2c_func,
|
||||
.smbus_xfer = mchp_corei2c_smbus_xfer,
|
||||
};
|
||||
|
@ -1342,7 +1342,7 @@ static u32 mtk_i2c_functionality(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm mtk_i2c_algorithm = {
|
||||
.master_xfer = mtk_i2c_transfer,
|
||||
.xfer = mtk_i2c_transfer,
|
||||
.functionality = mtk_i2c_functionality,
|
||||
};
|
||||
|
||||
|
@ -687,7 +687,7 @@ static irqreturn_t mxs_i2c_isr(int this_irq, void *dev_id)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm mxs_i2c_algo = {
|
||||
.master_xfer = mxs_i2c_xfer,
|
||||
.xfer = mxs_i2c_xfer,
|
||||
.functionality = mxs_i2c_func,
|
||||
};
|
||||
|
||||
|
@ -996,8 +996,8 @@ static unsigned int nmk_i2c_functionality(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm nmk_i2c_algo = {
|
||||
.master_xfer = nmk_i2c_xfer,
|
||||
.functionality = nmk_i2c_functionality
|
||||
.xfer = nmk_i2c_xfer,
|
||||
.functionality = nmk_i2c_functionality
|
||||
};
|
||||
|
||||
static void nmk_i2c_of_probe(struct device_node *np,
|
||||
|
@ -2470,11 +2470,11 @@ static const struct i2c_adapter_quirks npcm_i2c_quirks = {
|
||||
};
|
||||
|
||||
static const struct i2c_algorithm npcm_i2c_algo = {
|
||||
.master_xfer = npcm_i2c_master_xfer,
|
||||
.xfer = npcm_i2c_master_xfer,
|
||||
.functionality = npcm_i2c_functionality,
|
||||
#if IS_ENABLED(CONFIG_I2C_SLAVE)
|
||||
.reg_slave = npcm_i2c_reg_slave,
|
||||
.unreg_slave = npcm_i2c_unreg_slave,
|
||||
.reg_slave = npcm_i2c_reg_slave,
|
||||
.unreg_slave = npcm_i2c_unreg_slave,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -1201,9 +1201,9 @@ omap_i2c_isr_thread(int this_irq, void *dev_id)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm omap_i2c_algo = {
|
||||
.master_xfer = omap_i2c_xfer_irq,
|
||||
.master_xfer_atomic = omap_i2c_xfer_polling,
|
||||
.functionality = omap_i2c_func,
|
||||
.xfer = omap_i2c_xfer_irq,
|
||||
.xfer_atomic = omap_i2c_xfer_polling,
|
||||
.functionality = omap_i2c_func,
|
||||
};
|
||||
|
||||
static const struct i2c_adapter_quirks omap_i2c_quirks = {
|
||||
|
@ -580,7 +580,7 @@ static u32 i2c_pnx_func(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm pnx_algorithm = {
|
||||
.master_xfer = i2c_pnx_xfer,
|
||||
.xfer = i2c_pnx_xfer,
|
||||
.functionality = i2c_pnx_func,
|
||||
};
|
||||
|
||||
|
@ -1154,11 +1154,11 @@ static u32 i2c_pxa_functionality(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm i2c_pxa_algorithm = {
|
||||
.master_xfer = i2c_pxa_xfer,
|
||||
.functionality = i2c_pxa_functionality,
|
||||
.xfer = i2c_pxa_xfer,
|
||||
.functionality = i2c_pxa_functionality,
|
||||
#ifdef CONFIG_I2C_PXA_SLAVE
|
||||
.reg_slave = i2c_pxa_slave_reg,
|
||||
.unreg_slave = i2c_pxa_slave_unreg,
|
||||
.reg_slave = i2c_pxa_slave_reg,
|
||||
.unreg_slave = i2c_pxa_slave_unreg,
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -1244,11 +1244,11 @@ static int i2c_pxa_pio_xfer(struct i2c_adapter *adap,
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm i2c_pxa_pio_algorithm = {
|
||||
.master_xfer = i2c_pxa_pio_xfer,
|
||||
.functionality = i2c_pxa_functionality,
|
||||
.xfer = i2c_pxa_pio_xfer,
|
||||
.functionality = i2c_pxa_functionality,
|
||||
#ifdef CONFIG_I2C_PXA_SLAVE
|
||||
.reg_slave = i2c_pxa_slave_reg,
|
||||
.unreg_slave = i2c_pxa_slave_unreg,
|
||||
.reg_slave = i2c_pxa_slave_reg,
|
||||
.unreg_slave = i2c_pxa_slave_unreg,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -462,8 +462,8 @@ static u32 cci_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm cci_algo = {
|
||||
.master_xfer = cci_xfer,
|
||||
.functionality = cci_func,
|
||||
.xfer = cci_xfer,
|
||||
.functionality = cci_func,
|
||||
};
|
||||
|
||||
static int cci_enable_clocks(struct cci *cci)
|
||||
|
@ -727,8 +727,8 @@ static u32 geni_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm geni_i2c_algo = {
|
||||
.master_xfer = geni_i2c_xfer,
|
||||
.functionality = geni_i2c_func,
|
||||
.xfer = geni_i2c_xfer,
|
||||
.functionality = geni_i2c_func,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
|
@ -1634,13 +1634,13 @@ static u32 qup_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm qup_i2c_algo = {
|
||||
.master_xfer = qup_i2c_xfer,
|
||||
.functionality = qup_i2c_func,
|
||||
.xfer = qup_i2c_xfer,
|
||||
.functionality = qup_i2c_func,
|
||||
};
|
||||
|
||||
static const struct i2c_algorithm qup_i2c_algo_v2 = {
|
||||
.master_xfer = qup_i2c_xfer_v2,
|
||||
.functionality = qup_i2c_func,
|
||||
.xfer = qup_i2c_xfer_v2,
|
||||
.functionality = qup_i2c_func,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -1084,11 +1084,11 @@ static u32 rcar_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm rcar_i2c_algo = {
|
||||
.master_xfer = rcar_i2c_master_xfer,
|
||||
.master_xfer_atomic = rcar_i2c_master_xfer_atomic,
|
||||
.functionality = rcar_i2c_func,
|
||||
.reg_slave = rcar_reg_slave,
|
||||
.unreg_slave = rcar_unreg_slave,
|
||||
.xfer = rcar_i2c_master_xfer,
|
||||
.xfer_atomic = rcar_i2c_master_xfer_atomic,
|
||||
.functionality = rcar_i2c_func,
|
||||
.reg_slave = rcar_reg_slave,
|
||||
.unreg_slave = rcar_unreg_slave,
|
||||
};
|
||||
|
||||
static const struct i2c_adapter_quirks rcar_i2c_quirks = {
|
||||
|
@ -800,9 +800,9 @@ static u32 s3c24xx_i2c_func(struct i2c_adapter *adap)
|
||||
|
||||
/* i2c bus registration info */
|
||||
static const struct i2c_algorithm s3c24xx_i2c_algorithm = {
|
||||
.master_xfer = s3c24xx_i2c_xfer,
|
||||
.master_xfer_atomic = s3c24xx_i2c_xfer_atomic,
|
||||
.functionality = s3c24xx_i2c_func,
|
||||
.xfer = s3c24xx_i2c_xfer,
|
||||
.xfer_atomic = s3c24xx_i2c_xfer_atomic,
|
||||
.functionality = s3c24xx_i2c_func,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -379,8 +379,8 @@ static u32 sh7760_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm sh7760_i2c_algo = {
|
||||
.master_xfer = sh7760_i2c_master_xfer,
|
||||
.functionality = sh7760_i2c_func,
|
||||
.xfer = sh7760_i2c_master_xfer,
|
||||
.functionality = sh7760_i2c_func,
|
||||
};
|
||||
|
||||
/* calculate CCR register setting for a desired scl clock. SCL clock is
|
||||
|
@ -740,8 +740,8 @@ static u32 sh_mobile_i2c_func(struct i2c_adapter *adapter)
|
||||
|
||||
static const struct i2c_algorithm sh_mobile_i2c_algorithm = {
|
||||
.functionality = sh_mobile_i2c_func,
|
||||
.master_xfer = sh_mobile_i2c_xfer,
|
||||
.master_xfer_atomic = sh_mobile_i2c_xfer_atomic,
|
||||
.xfer = sh_mobile_i2c_xfer,
|
||||
.xfer_atomic = sh_mobile_i2c_xfer_atomic,
|
||||
};
|
||||
|
||||
static const struct i2c_adapter_quirks sh_mobile_i2c_quirks = {
|
||||
|
@ -2151,8 +2151,8 @@ static u32 stm32f7_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm stm32f7_i2c_algo = {
|
||||
.master_xfer = stm32f7_i2c_xfer,
|
||||
.master_xfer_atomic = stm32f7_i2c_xfer_atomic,
|
||||
.xfer = stm32f7_i2c_xfer,
|
||||
.xfer_atomic = stm32f7_i2c_xfer_atomic,
|
||||
.smbus_xfer = stm32f7_i2c_smbus_xfer,
|
||||
.functionality = stm32f7_i2c_func,
|
||||
.reg_slave = stm32f7_i2c_reg_slave,
|
||||
|
@ -520,8 +520,8 @@ static u32 synquacer_i2c_functionality(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm synquacer_i2c_algo = {
|
||||
.master_xfer = synquacer_i2c_xfer,
|
||||
.functionality = synquacer_i2c_functionality,
|
||||
.xfer = synquacer_i2c_xfer,
|
||||
.functionality = synquacer_i2c_functionality,
|
||||
};
|
||||
|
||||
static const struct i2c_adapter synquacer_i2c_ops = {
|
||||
|
@ -1440,9 +1440,9 @@ static u32 tegra_i2c_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm tegra_i2c_algo = {
|
||||
.master_xfer = tegra_i2c_xfer,
|
||||
.master_xfer_atomic = tegra_i2c_xfer_atomic,
|
||||
.functionality = tegra_i2c_func,
|
||||
.xfer = tegra_i2c_xfer,
|
||||
.xfer_atomic = tegra_i2c_xfer_atomic,
|
||||
.functionality = tegra_i2c_func,
|
||||
};
|
||||
|
||||
/* payload size is only 12 bit */
|
||||
|
@ -1398,8 +1398,8 @@ static u32 xiic_func(struct i2c_adapter *adap)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm xiic_algorithm = {
|
||||
.master_xfer = xiic_xfer,
|
||||
.master_xfer_atomic = xiic_xfer_atomic,
|
||||
.xfer = xiic_xfer,
|
||||
.xfer_atomic = xiic_xfer_atomic,
|
||||
.functionality = xiic_func,
|
||||
};
|
||||
|
||||
|
@ -452,7 +452,7 @@ static u32 xlp9xx_i2c_functionality(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
static const struct i2c_algorithm xlp9xx_i2c_algo = {
|
||||
.master_xfer = xlp9xx_i2c_xfer,
|
||||
.xfer = xlp9xx_i2c_xfer,
|
||||
.functionality = xlp9xx_i2c_functionality,
|
||||
};
|
||||
|
||||
|
@ -738,7 +738,7 @@ struct i2c_atr *i2c_atr_new(struct i2c_adapter *parent, struct device *dev,
|
||||
atr->flags = flags;
|
||||
|
||||
if (parent->algo->master_xfer)
|
||||
atr->algo.master_xfer = i2c_atr_master_xfer;
|
||||
atr->algo.xfer = i2c_atr_master_xfer;
|
||||
if (parent->algo->smbus_xfer)
|
||||
atr->algo.smbus_xfer = i2c_atr_smbus_xfer;
|
||||
atr->algo.functionality = i2c_atr_functionality;
|
||||
|
@ -293,12 +293,12 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc,
|
||||
*/
|
||||
if (parent->algo->master_xfer) {
|
||||
if (muxc->mux_locked)
|
||||
priv->algo.master_xfer = i2c_mux_master_xfer;
|
||||
priv->algo.xfer = i2c_mux_master_xfer;
|
||||
else
|
||||
priv->algo.master_xfer = __i2c_mux_master_xfer;
|
||||
priv->algo.xfer = __i2c_mux_master_xfer;
|
||||
}
|
||||
if (parent->algo->master_xfer_atomic)
|
||||
priv->algo.master_xfer_atomic = priv->algo.master_xfer;
|
||||
priv->algo.xfer_atomic = priv->algo.master_xfer;
|
||||
|
||||
if (parent->algo->smbus_xfer) {
|
||||
if (muxc->mux_locked)
|
||||
|
@ -95,9 +95,9 @@ static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 ne
|
||||
priv->cur_chan = new_chan;
|
||||
|
||||
/* Now fill out current adapter structure. cur_chan must be up to date */
|
||||
priv->algo.master_xfer = i2c_demux_master_xfer;
|
||||
priv->algo.xfer = i2c_demux_master_xfer;
|
||||
if (adap->algo->master_xfer_atomic)
|
||||
priv->algo.master_xfer_atomic = i2c_demux_master_xfer;
|
||||
priv->algo.xfer_atomic = i2c_demux_master_xfer;
|
||||
priv->algo.functionality = i2c_demux_functionality;
|
||||
|
||||
snprintf(priv->cur_adap.name, sizeof(priv->cur_adap.name),
|
||||
|
Loading…
Reference in New Issue
Block a user