]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: x86-android-tablets: Add an init() callback to struct x86_dev_info
authorHans de Goede <hdegoede@redhat.com>
Mon, 10 Jan 2022 10:39:51 +0000 (11:39 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 24 Jan 2022 09:41:44 +0000 (10:41 +0100)
commit93002473ada399a6c430ce27df43717d51228013
treebb0189d1275f98d71afa1964d191ed3bbe467c72
parenta6e337f118159b6a153c4fbdfcae55b9e91f2c72
platform/x86: x86-android-tablets: Add an init() callback to struct x86_dev_info

Add an init() callback to struct x86_dev_info, board descriptions can use
this to do some custom setup before registering the i2c_clients, platform-
devices and servdevs.

Also add an exit() callback to also allow for cleanup of the custom setup.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-By: Lubomir Rintel <lkundrak@V3.sk>
Link: https://lore.kernel.org/r/20220110103952.48760-2-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c