mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 02:23:05 +00:00
Use the auxiliary bus to register/unregister subdevices for each function. Each function will be handled with a separate driver, matched using a name. If a vendor wants to override a specific function driver, they could use a custom name to match with a custom function driver. Signed-off-by: Pierre-Louis Bossart <[email protected]> Tested-by: Bard Liao <[email protected]> Reviewed-by: Maciej Strozek <[email protected]> Reviewed-by: Peter Ujfalusi <[email protected]> Tested-by: Richard Fitzgerald <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Vinod Koul <[email protected]> Signed-off-by: Mark Brown <[email protected]>
16 lines
374 B
C
16 lines
374 B
C
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
|
|
/* Copyright(c) 2024 Intel Corporation. */
|
|
|
|
#ifndef __SDCA_FUNCTION_DEVICE_H
|
|
#define __SDCA_FUNCTION_DEVICE_H
|
|
|
|
struct sdca_dev {
|
|
struct auxiliary_device auxdev;
|
|
struct sdca_function_data function;
|
|
};
|
|
|
|
#define auxiliary_dev_to_sdca_dev(auxiliary_dev) \
|
|
container_of(auxiliary_dev, struct sdca_dev, auxdev)
|
|
|
|
#endif
|