aboutsummaryrefslogtreecommitdiff
path: root/drivers/rapidio/Kconfig
diff options
context:
space:
mode:
authorHans de Goede2019-03-12 15:55:53 +0100
committerWolfram Sang2019-03-13 18:06:56 +0100
commit77f3381a83c2f66daeb6719a1191a87280d57f62 (patch)
tree232df842bd2ce7cf4f2d78fd7bd80735b5959b79 /drivers/rapidio/Kconfig
parentbf263c35b2ebe7f1674205f6b36487250299b5a7 (diff)
i2c: i2c-designware-platdrv: Cleanup setting of the adapter number
i2c-designware-platdrv assumes that if the pdev has an apci-companion it should use a dynamic adapter-nr and otherwise it will use pdev->id as adapter-nr. Before this commit the setting of the adapter.nr was somewhat convoluted, in the acpi_companion case it was set from dw_i2c_acpi_configure, in the non acpi_companion case it was set from dw_i2c_set_fifo_size based on tx_fifo_depth not being set yet indicating that dw_i2c_acpi_configure was not executed. This cleans this up, directly setting the adapter-nr from dw_i2c_plat_probe for both cases. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/rapidio/Kconfig')
0 files changed, 0 insertions, 0 deletions