]> 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)
commita75e54db62e2d2d76b865d97e462d83ff9822534
treebb0189d1275f98d71afa1964d191ed3bbe467c72
parent0e1bd420f6e174c79717258973b818a9b2ddeab0
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