]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/platform/x86/touchscreen_dmi.c
platform/x86: silead_dmi - do not treat all devices as i2c_clients
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 4 Apr 2017 03:25:13 +0000 (20:25 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:16:03 +0000 (10:16 -0700)
commite1053963984318f67c60c629664c5f09b93cc1c4
tree05ee26a9eb9f9c0b44025b6dd04fe4f13095f542
parentf35823619db8bbaa2afea8705f239c3cecb9d22f
platform/x86: silead_dmi - do not treat all devices as i2c_clients

I2C bus has both i2c clients and adapter devices, so we must be careful in
notifier code and verify that we are actually dealing with an i2c client
before using it as such.

Fixes: cef9dd85acd7 ("platform/x86: add support for devices with Silead...")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
[andy: simplified silead_ts_dmi_add_props() change]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/silead_dmi.c