platform/x86: serial-multi-instantiate: Reorganize I2C functions
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 21 Jan 2022 17:24:28 +0000 (17:24 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 2 Feb 2022 17:10:02 +0000 (18:10 +0100)
commit35a36cbb7b1ce7596fc03962f7ce261b2e908d1f
treefc8815a5cbd4087c50a4e545c8f3b167fc16a725
parent5e63b2ea3dfbab9307e197004a3c5ee4e1442582
platform/x86: serial-multi-instantiate: Reorganize I2C functions

Reorganize I2C functions to accommodate SPI support
Split the probe and factor out parts of the code
that will be used in the SPI support
Also switched from strlcpy() to strscpy()

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220121172431.6876-7-sbinding@opensource.cirrus.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/serial-multi-instantiate.c