]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: x86-android-tablets: Add get_i2c_adap_by_handle() helper
authorHans de Goede <hdegoede@redhat.com>
Mon, 4 Nov 2024 20:08:46 +0000 (21:08 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 6 Nov 2024 13:15:46 +0000 (15:15 +0200)
commit01fbfcb3acbb2e4fd34bf36a87c75299a85a0cf9
treea4f5cdc5e1a0dbbdda286c6f153481ff54b250ef
parent44ed58e57984d0fb26d1e267deb9d83a1a071dfe
platform/x86: x86-android-tablets: Add get_i2c_adap_by_handle() helper

Add get_i2c_adap_by_handle() helper function, this is a preparation patch
for adding support for getting i2c_adapter-s by PCI parent devname().

Suggested-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20241104200848.58693-2-hdegoede@redhat.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/x86-android-tablets/core.c