]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b118cb801378c8d5ec13568a66f26585588c80c
treefc8815a5cbd4087c50a4e545c8f3b167fc16a725
parentb7c8f48d6c4462095d59a982b364382235c64105
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