i2c-stm32f4.c (0337966d121ebebf73a1c346123e8112796e684e) i2c-stm32f4.c (8dc0f8c73c54c9d1a7fe8188ef3e70123a960eaf)
1/*
2 * Driver for STMicroelectronics STM32 I2C controller
3 *
4 * This I2C controller is described in the STM32F429/439 Soc reference manual.
5 * Please see below a link to the documentation:
6 * http://www.st.com/resource/en/reference_manual/DM00031020.pdf
7 *
8 * Copyright (C) M'boumba Cedric Madianga 2016

--- 737 unchanged lines hidden (view full) ---

746 return (ret < 0) ? ret : num;
747}
748
749static u32 stm32f4_i2c_func(struct i2c_adapter *adap)
750{
751 return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
752}
753
1/*
2 * Driver for STMicroelectronics STM32 I2C controller
3 *
4 * This I2C controller is described in the STM32F429/439 Soc reference manual.
5 * Please see below a link to the documentation:
6 * http://www.st.com/resource/en/reference_manual/DM00031020.pdf
7 *
8 * Copyright (C) M'boumba Cedric Madianga 2016

--- 737 unchanged lines hidden (view full) ---

746 return (ret < 0) ? ret : num;
747}
748
749static u32 stm32f4_i2c_func(struct i2c_adapter *adap)
750{
751 return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
752}
753
754static struct i2c_algorithm stm32f4_i2c_algo = {
754static const struct i2c_algorithm stm32f4_i2c_algo = {
755 .master_xfer = stm32f4_i2c_xfer,
756 .functionality = stm32f4_i2c_func,
757};
758
759static int stm32f4_i2c_probe(struct platform_device *pdev)
760{
761 struct device_node *np = pdev->dev.of_node;
762 struct stm32f4_i2c_dev *i2c_dev;

--- 135 unchanged lines hidden ---
755 .master_xfer = stm32f4_i2c_xfer,
756 .functionality = stm32f4_i2c_func,
757};
758
759static int stm32f4_i2c_probe(struct platform_device *pdev)
760{
761 struct device_node *np = pdev->dev.of_node;
762 struct stm32f4_i2c_dev *i2c_dev;

--- 135 unchanged lines hidden ---