platform/x86: dell-smo8800: Add support for probing for the accelerometer i2c address
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Jan 2025 12:32:59 +0000 (13:32 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:26:38 +0000 (16:26 +0200)
commit1e4e3dff9e13e3d12d78cf742980ca731af80c7b
tree4f9addab67ae3865e06afc4047cf316209c91b1e
parent913240e47b414653d7801f6d04cffa9146a13396
platform/x86: dell-smo8800: Add support for probing for the accelerometer i2c address

Unfortunately the SMOxxxx ACPI device does not contain the i2c-address
of the accelerometer. So a DMI product-name to address mapping table
is used.

Add support to have the kernel probe for the i2c-address for models
which are not on the list.

The new probing code sits behind a new probe_i2c_addr module parameter,
which is disabled by default because probing might be dangerous.

Link: https://lore.kernel.org/linux-i2c/4820e280-9ca4-4d97-9d21-059626161bfc@molgen.mpg.de/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20250106123259.45970-1-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/dell-lis3lv02d.c