OSDN Git Service

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)
commit84c2dcdd475f3f5d1d30c87404cafba4dd4b75ec
treebb0189d1275f98d71afa1964d191ed3bbe467c72
parent4ce2a32d40260374dfce5344960c419fde23ce87
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