diff options
author | Alexander Stein <alexander.stein@systec-electronic.com> | 2016-11-21 11:43:20 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-11-29 20:19:56 +0100 |
commit | f06122f0bdd0d3c851c452f7c11a3a2198221fdd (patch) | |
tree | 9ad83bb0f9fa2928f45e92f8af988410311c0538 /drivers/i2c/busses/i2c-designware-pcidrv.c | |
parent | i2c: i2c-mux-gpio: update mux with gpiod_set_array_value_cansleep (diff) | |
download | linux-f06122f0bdd0d3c851c452f7c11a3a2198221fdd.tar.xz linux-f06122f0bdd0d3c851c452f7c11a3a2198221fdd.zip |
i2c: designware: Consolidate default functionality bits
Use a common place for default functionality bits for both platform
and pci driver.
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-pcidrv.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-pcidrv.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index 8ffe2da6ca2f..300802e75d2e 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -71,13 +71,6 @@ struct dw_pci_controller { DW_IC_CON_SLAVE_DISABLE | \ DW_IC_CON_RESTART_EN) -#define DW_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | \ - I2C_FUNC_SMBUS_BYTE | \ - I2C_FUNC_SMBUS_BYTE_DATA | \ - I2C_FUNC_SMBUS_WORD_DATA | \ - I2C_FUNC_SMBUS_BLOCK_DATA | \ - I2C_FUNC_SMBUS_I2C_BLOCK) - /* Merrifield HCNT/LCNT/SDA hold time */ static struct dw_scl_sda_cfg mrfld_config = { .ss_hcnt = 0x2f8, @@ -250,7 +243,7 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, } dev->functionality = controller->functionality | - DW_DEFAULT_FUNCTIONALITY; + DW_IC_DEFAULT_FUNCTIONALITY; dev->master_cfg = controller->bus_cfg; if (controller->scl_sda_cfg) { |