platform/x86: i2c-multi-instantiate: Allow to have same slaves
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 28 Nov 2018 11:45:33 +0000 (13:45 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Dec 2018 19:40:02 +0000 (21:40 +0200)
commit2336dfadfb1e3a484f0daf4014305626a3d9df62
tree9a2da2a453e4920eb189062f1e6989256ccbac74
parent799d3379a6728794de5ed2be8acc5b4a65d776b6
platform/x86: i2c-multi-instantiate: Allow to have same slaves

Currently the driver will not enumerate the devices where I2C slaves
are of the same type.

Add an instance number to make them unique.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/i2c-multi-instantiate.c