162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * V4L2 asynchronous subdevice registration API 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2012-2013, Guennadi Liakhovetski <g.liakhovetski@gmx.de> 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef V4L2_ASYNC_H 962306a36Sopenharmony_ci#define V4L2_ASYNC_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include <linux/list.h> 1262306a36Sopenharmony_ci#include <linux/mutex.h> 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_cistruct dentry; 1562306a36Sopenharmony_cistruct device; 1662306a36Sopenharmony_cistruct device_node; 1762306a36Sopenharmony_cistruct v4l2_device; 1862306a36Sopenharmony_cistruct v4l2_subdev; 1962306a36Sopenharmony_cistruct v4l2_async_notifier; 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci/** 2262306a36Sopenharmony_ci * enum v4l2_async_match_type - type of asynchronous subdevice logic to be used 2362306a36Sopenharmony_ci * in order to identify a match 2462306a36Sopenharmony_ci * 2562306a36Sopenharmony_ci * @V4L2_ASYNC_MATCH_TYPE_I2C: Match will check for I2C adapter ID and address 2662306a36Sopenharmony_ci * @V4L2_ASYNC_MATCH_TYPE_FWNODE: Match will use firmware node 2762306a36Sopenharmony_ci * 2862306a36Sopenharmony_ci * This enum is used by the asynchronous connection logic to define the 2962306a36Sopenharmony_ci * algorithm that will be used to match an asynchronous device. 3062306a36Sopenharmony_ci */ 3162306a36Sopenharmony_cienum v4l2_async_match_type { 3262306a36Sopenharmony_ci V4L2_ASYNC_MATCH_TYPE_I2C, 3362306a36Sopenharmony_ci V4L2_ASYNC_MATCH_TYPE_FWNODE, 3462306a36Sopenharmony_ci}; 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci/** 3762306a36Sopenharmony_ci * struct v4l2_async_match_desc - async connection match information 3862306a36Sopenharmony_ci * 3962306a36Sopenharmony_ci * @type: type of match that will be used 4062306a36Sopenharmony_ci * @fwnode: pointer to &struct fwnode_handle to be matched. 4162306a36Sopenharmony_ci * Used if @match_type is %V4L2_ASYNC_MATCH_TYPE_FWNODE. 4262306a36Sopenharmony_ci * @i2c: embedded struct with I2C parameters to be matched. 4362306a36Sopenharmony_ci * Both @match.i2c.adapter_id and @match.i2c.address 4462306a36Sopenharmony_ci * should be matched. 4562306a36Sopenharmony_ci * Used if @match_type is %V4L2_ASYNC_MATCH_TYPE_I2C. 4662306a36Sopenharmony_ci * @i2c.adapter_id: 4762306a36Sopenharmony_ci * I2C adapter ID to be matched. 4862306a36Sopenharmony_ci * Used if @match_type is %V4L2_ASYNC_MATCH_TYPE_I2C. 4962306a36Sopenharmony_ci * @i2c.address: 5062306a36Sopenharmony_ci * I2C address to be matched. 5162306a36Sopenharmony_ci * Used if @match_type is %V4L2_ASYNC_MATCH_TYPE_I2C. 5262306a36Sopenharmony_ci */ 5362306a36Sopenharmony_cistruct v4l2_async_match_desc { 5462306a36Sopenharmony_ci enum v4l2_async_match_type type; 5562306a36Sopenharmony_ci union { 5662306a36Sopenharmony_ci struct fwnode_handle *fwnode; 5762306a36Sopenharmony_ci struct { 5862306a36Sopenharmony_ci int adapter_id; 5962306a36Sopenharmony_ci unsigned short address; 6062306a36Sopenharmony_ci } i2c; 6162306a36Sopenharmony_ci }; 6262306a36Sopenharmony_ci}; 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci/** 6562306a36Sopenharmony_ci * struct v4l2_async_connection - sub-device connection descriptor, as known to 6662306a36Sopenharmony_ci * a bridge 6762306a36Sopenharmony_ci * 6862306a36Sopenharmony_ci * @match: struct of match type and per-bus type matching data sets 6962306a36Sopenharmony_ci * @notifier: the async notifier the connection is related to 7062306a36Sopenharmony_ci * @asc_entry: used to add struct v4l2_async_connection objects to the 7162306a36Sopenharmony_ci * notifier @waiting_list or @done_list 7262306a36Sopenharmony_ci * @asc_subdev_entry: entry in struct v4l2_async_subdev.asc_list list 7362306a36Sopenharmony_ci * @sd: the related sub-device 7462306a36Sopenharmony_ci * 7562306a36Sopenharmony_ci * When this struct is used as a member in a driver specific struct, the driver 7662306a36Sopenharmony_ci * specific struct shall contain the &struct v4l2_async_connection as its first 7762306a36Sopenharmony_ci * member. 7862306a36Sopenharmony_ci */ 7962306a36Sopenharmony_cistruct v4l2_async_connection { 8062306a36Sopenharmony_ci struct v4l2_async_match_desc match; 8162306a36Sopenharmony_ci struct v4l2_async_notifier *notifier; 8262306a36Sopenharmony_ci struct list_head asc_entry; 8362306a36Sopenharmony_ci struct list_head asc_subdev_entry; 8462306a36Sopenharmony_ci struct v4l2_subdev *sd; 8562306a36Sopenharmony_ci}; 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ci/** 8862306a36Sopenharmony_ci * struct v4l2_async_notifier_operations - Asynchronous V4L2 notifier operations 8962306a36Sopenharmony_ci * @bound: a sub-device has been bound by the given connection 9062306a36Sopenharmony_ci * @complete: All connections have been bound successfully. The complete 9162306a36Sopenharmony_ci * callback is only executed for the root notifier. 9262306a36Sopenharmony_ci * @unbind: a subdevice is leaving 9362306a36Sopenharmony_ci * @destroy: the asc is about to be freed 9462306a36Sopenharmony_ci */ 9562306a36Sopenharmony_cistruct v4l2_async_notifier_operations { 9662306a36Sopenharmony_ci int (*bound)(struct v4l2_async_notifier *notifier, 9762306a36Sopenharmony_ci struct v4l2_subdev *subdev, 9862306a36Sopenharmony_ci struct v4l2_async_connection *asc); 9962306a36Sopenharmony_ci int (*complete)(struct v4l2_async_notifier *notifier); 10062306a36Sopenharmony_ci void (*unbind)(struct v4l2_async_notifier *notifier, 10162306a36Sopenharmony_ci struct v4l2_subdev *subdev, 10262306a36Sopenharmony_ci struct v4l2_async_connection *asc); 10362306a36Sopenharmony_ci void (*destroy)(struct v4l2_async_connection *asc); 10462306a36Sopenharmony_ci}; 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ci/** 10762306a36Sopenharmony_ci * struct v4l2_async_notifier - v4l2_device notifier data 10862306a36Sopenharmony_ci * 10962306a36Sopenharmony_ci * @ops: notifier operations 11062306a36Sopenharmony_ci * @v4l2_dev: v4l2_device of the root notifier, NULL otherwise 11162306a36Sopenharmony_ci * @sd: sub-device that registered the notifier, NULL otherwise 11262306a36Sopenharmony_ci * @parent: parent notifier 11362306a36Sopenharmony_ci * @waiting_list: list of struct v4l2_async_connection, waiting for their 11462306a36Sopenharmony_ci * drivers 11562306a36Sopenharmony_ci * @done_list: list of struct v4l2_subdev, already probed 11662306a36Sopenharmony_ci * @notifier_entry: member in a global list of notifiers 11762306a36Sopenharmony_ci */ 11862306a36Sopenharmony_cistruct v4l2_async_notifier { 11962306a36Sopenharmony_ci const struct v4l2_async_notifier_operations *ops; 12062306a36Sopenharmony_ci struct v4l2_device *v4l2_dev; 12162306a36Sopenharmony_ci struct v4l2_subdev *sd; 12262306a36Sopenharmony_ci struct v4l2_async_notifier *parent; 12362306a36Sopenharmony_ci struct list_head waiting_list; 12462306a36Sopenharmony_ci struct list_head done_list; 12562306a36Sopenharmony_ci struct list_head notifier_entry; 12662306a36Sopenharmony_ci}; 12762306a36Sopenharmony_ci 12862306a36Sopenharmony_ci/** 12962306a36Sopenharmony_ci * struct v4l2_async_subdev_endpoint - Entry in sub-device's fwnode list 13062306a36Sopenharmony_ci * 13162306a36Sopenharmony_ci * @async_subdev_endpoint_entry: An entry in async_subdev_endpoint_list of 13262306a36Sopenharmony_ci * &struct v4l2_subdev 13362306a36Sopenharmony_ci * @endpoint: Endpoint fwnode agains which to match the sub-device 13462306a36Sopenharmony_ci */ 13562306a36Sopenharmony_cistruct v4l2_async_subdev_endpoint { 13662306a36Sopenharmony_ci struct list_head async_subdev_endpoint_entry; 13762306a36Sopenharmony_ci struct fwnode_handle *endpoint; 13862306a36Sopenharmony_ci}; 13962306a36Sopenharmony_ci 14062306a36Sopenharmony_ci/** 14162306a36Sopenharmony_ci * v4l2_async_debug_init - Initialize debugging tools. 14262306a36Sopenharmony_ci * 14362306a36Sopenharmony_ci * @debugfs_dir: pointer to the parent debugfs &struct dentry 14462306a36Sopenharmony_ci */ 14562306a36Sopenharmony_civoid v4l2_async_debug_init(struct dentry *debugfs_dir); 14662306a36Sopenharmony_ci 14762306a36Sopenharmony_ci/** 14862306a36Sopenharmony_ci * v4l2_async_nf_init - Initialize a notifier. 14962306a36Sopenharmony_ci * 15062306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 15162306a36Sopenharmony_ci * @v4l2_dev: pointer to &struct v4l2_device 15262306a36Sopenharmony_ci * 15362306a36Sopenharmony_ci * This function initializes the notifier @asc_entry. It must be called 15462306a36Sopenharmony_ci * before adding a subdevice to a notifier, using one of: 15562306a36Sopenharmony_ci * v4l2_async_nf_add_fwnode_remote(), 15662306a36Sopenharmony_ci * v4l2_async_nf_add_fwnode() or 15762306a36Sopenharmony_ci * v4l2_async_nf_add_i2c(). 15862306a36Sopenharmony_ci */ 15962306a36Sopenharmony_civoid v4l2_async_nf_init(struct v4l2_async_notifier *notifier, 16062306a36Sopenharmony_ci struct v4l2_device *v4l2_dev); 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci/** 16362306a36Sopenharmony_ci * v4l2_async_subdev_nf_init - Initialize a sub-device notifier. 16462306a36Sopenharmony_ci * 16562306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 16662306a36Sopenharmony_ci * @sd: pointer to &struct v4l2_subdev 16762306a36Sopenharmony_ci * 16862306a36Sopenharmony_ci * This function initializes the notifier @asc_list. It must be called 16962306a36Sopenharmony_ci * before adding a subdevice to a notifier, using one of: 17062306a36Sopenharmony_ci * v4l2_async_nf_add_fwnode_remote(), v4l2_async_nf_add_fwnode() or 17162306a36Sopenharmony_ci * v4l2_async_nf_add_i2c(). 17262306a36Sopenharmony_ci */ 17362306a36Sopenharmony_civoid v4l2_async_subdev_nf_init(struct v4l2_async_notifier *notifier, 17462306a36Sopenharmony_ci struct v4l2_subdev *sd); 17562306a36Sopenharmony_ci 17662306a36Sopenharmony_cistruct v4l2_async_connection * 17762306a36Sopenharmony_ci__v4l2_async_nf_add_fwnode(struct v4l2_async_notifier *notifier, 17862306a36Sopenharmony_ci struct fwnode_handle *fwnode, 17962306a36Sopenharmony_ci unsigned int asc_struct_size); 18062306a36Sopenharmony_ci/** 18162306a36Sopenharmony_ci * v4l2_async_nf_add_fwnode - Allocate and add a fwnode async 18262306a36Sopenharmony_ci * subdev to the notifier's master asc_list. 18362306a36Sopenharmony_ci * 18462306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 18562306a36Sopenharmony_ci * @fwnode: fwnode handle of the sub-device to be matched, pointer to 18662306a36Sopenharmony_ci * &struct fwnode_handle 18762306a36Sopenharmony_ci * @type: Type of the driver's async sub-device or connection struct. The 18862306a36Sopenharmony_ci * &struct v4l2_async_connection shall be the first member of the 18962306a36Sopenharmony_ci * driver's async struct, i.e. both begin at the same memory address. 19062306a36Sopenharmony_ci * 19162306a36Sopenharmony_ci * Allocate a fwnode-matched asc of size asc_struct_size, and add it to the 19262306a36Sopenharmony_ci * notifiers @asc_list. The function also gets a reference of the fwnode which 19362306a36Sopenharmony_ci * is released later at notifier cleanup time. 19462306a36Sopenharmony_ci */ 19562306a36Sopenharmony_ci#define v4l2_async_nf_add_fwnode(notifier, fwnode, type) \ 19662306a36Sopenharmony_ci ((type *)__v4l2_async_nf_add_fwnode(notifier, fwnode, sizeof(type))) 19762306a36Sopenharmony_ci 19862306a36Sopenharmony_cistruct v4l2_async_connection * 19962306a36Sopenharmony_ci__v4l2_async_nf_add_fwnode_remote(struct v4l2_async_notifier *notif, 20062306a36Sopenharmony_ci struct fwnode_handle *endpoint, 20162306a36Sopenharmony_ci unsigned int asc_struct_size); 20262306a36Sopenharmony_ci/** 20362306a36Sopenharmony_ci * v4l2_async_nf_add_fwnode_remote - Allocate and add a fwnode 20462306a36Sopenharmony_ci * remote async subdev to the 20562306a36Sopenharmony_ci * notifier's master asc_list. 20662306a36Sopenharmony_ci * 20762306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 20862306a36Sopenharmony_ci * @ep: local endpoint pointing to the remote connection to be matched, 20962306a36Sopenharmony_ci * pointer to &struct fwnode_handle 21062306a36Sopenharmony_ci * @type: Type of the driver's async connection struct. The &struct 21162306a36Sopenharmony_ci * v4l2_async_connection shall be the first member of the driver's async 21262306a36Sopenharmony_ci * connection struct, i.e. both begin at the same memory address. 21362306a36Sopenharmony_ci * 21462306a36Sopenharmony_ci * Gets the remote endpoint of a given local endpoint, set it up for fwnode 21562306a36Sopenharmony_ci * matching and adds the async connection to the notifier's @asc_list. The 21662306a36Sopenharmony_ci * function also gets a reference of the fwnode which is released later at 21762306a36Sopenharmony_ci * notifier cleanup time. 21862306a36Sopenharmony_ci * 21962306a36Sopenharmony_ci * This is just like v4l2_async_nf_add_fwnode(), but with the 22062306a36Sopenharmony_ci * exception that the fwnode refers to a local endpoint, not the remote one. 22162306a36Sopenharmony_ci */ 22262306a36Sopenharmony_ci#define v4l2_async_nf_add_fwnode_remote(notifier, ep, type) \ 22362306a36Sopenharmony_ci ((type *)__v4l2_async_nf_add_fwnode_remote(notifier, ep, sizeof(type))) 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_cistruct v4l2_async_connection * 22662306a36Sopenharmony_ci__v4l2_async_nf_add_i2c(struct v4l2_async_notifier *notifier, 22762306a36Sopenharmony_ci int adapter_id, unsigned short address, 22862306a36Sopenharmony_ci unsigned int asc_struct_size); 22962306a36Sopenharmony_ci/** 23062306a36Sopenharmony_ci * v4l2_async_nf_add_i2c - Allocate and add an i2c async 23162306a36Sopenharmony_ci * subdev to the notifier's master asc_list. 23262306a36Sopenharmony_ci * 23362306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 23462306a36Sopenharmony_ci * @adapter: I2C adapter ID to be matched 23562306a36Sopenharmony_ci * @address: I2C address of connection to be matched 23662306a36Sopenharmony_ci * @type: Type of the driver's async connection struct. The &struct 23762306a36Sopenharmony_ci * v4l2_async_connection shall be the first member of the driver's async 23862306a36Sopenharmony_ci * connection struct, i.e. both begin at the same memory address. 23962306a36Sopenharmony_ci * 24062306a36Sopenharmony_ci * Same as v4l2_async_nf_add_fwnode() but for I2C matched 24162306a36Sopenharmony_ci * connections. 24262306a36Sopenharmony_ci */ 24362306a36Sopenharmony_ci#define v4l2_async_nf_add_i2c(notifier, adapter, address, type) \ 24462306a36Sopenharmony_ci ((type *)__v4l2_async_nf_add_i2c(notifier, adapter, address, \ 24562306a36Sopenharmony_ci sizeof(type))) 24662306a36Sopenharmony_ci 24762306a36Sopenharmony_ci/** 24862306a36Sopenharmony_ci * v4l2_async_subdev_endpoint_add - Add an endpoint fwnode to async sub-device 24962306a36Sopenharmony_ci * matching list 25062306a36Sopenharmony_ci * 25162306a36Sopenharmony_ci * @sd: the sub-device 25262306a36Sopenharmony_ci * @fwnode: the endpoint fwnode to match 25362306a36Sopenharmony_ci * 25462306a36Sopenharmony_ci * Add a fwnode to the async sub-device's matching list. This allows registering 25562306a36Sopenharmony_ci * multiple async sub-devices from a single device. 25662306a36Sopenharmony_ci * 25762306a36Sopenharmony_ci * Note that calling v4l2_subdev_cleanup() as part of the sub-device's cleanup 25862306a36Sopenharmony_ci * if endpoints have been added to the sub-device's fwnode matching list. 25962306a36Sopenharmony_ci * 26062306a36Sopenharmony_ci * Returns an error on failure, 0 on success. 26162306a36Sopenharmony_ci */ 26262306a36Sopenharmony_ciint v4l2_async_subdev_endpoint_add(struct v4l2_subdev *sd, 26362306a36Sopenharmony_ci struct fwnode_handle *fwnode); 26462306a36Sopenharmony_ci 26562306a36Sopenharmony_ci/** 26662306a36Sopenharmony_ci * v4l2_async_connection_unique - return a unique &struct v4l2_async_connection 26762306a36Sopenharmony_ci * for a sub-device 26862306a36Sopenharmony_ci * @sd: the sub-device 26962306a36Sopenharmony_ci * 27062306a36Sopenharmony_ci * Return an async connection for a sub-device, when there is a single 27162306a36Sopenharmony_ci * one only. 27262306a36Sopenharmony_ci */ 27362306a36Sopenharmony_cistruct v4l2_async_connection * 27462306a36Sopenharmony_civ4l2_async_connection_unique(struct v4l2_subdev *sd); 27562306a36Sopenharmony_ci 27662306a36Sopenharmony_ci/** 27762306a36Sopenharmony_ci * v4l2_async_nf_register - registers a subdevice asynchronous notifier 27862306a36Sopenharmony_ci * 27962306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 28062306a36Sopenharmony_ci */ 28162306a36Sopenharmony_ciint v4l2_async_nf_register(struct v4l2_async_notifier *notifier); 28262306a36Sopenharmony_ci 28362306a36Sopenharmony_ci/** 28462306a36Sopenharmony_ci * v4l2_async_nf_unregister - unregisters a subdevice 28562306a36Sopenharmony_ci * asynchronous notifier 28662306a36Sopenharmony_ci * 28762306a36Sopenharmony_ci * @notifier: pointer to &struct v4l2_async_notifier 28862306a36Sopenharmony_ci */ 28962306a36Sopenharmony_civoid v4l2_async_nf_unregister(struct v4l2_async_notifier *notifier); 29062306a36Sopenharmony_ci 29162306a36Sopenharmony_ci/** 29262306a36Sopenharmony_ci * v4l2_async_nf_cleanup - clean up notifier resources 29362306a36Sopenharmony_ci * @notifier: the notifier the resources of which are to be cleaned up 29462306a36Sopenharmony_ci * 29562306a36Sopenharmony_ci * Release memory resources related to a notifier, including the async 29662306a36Sopenharmony_ci * connections allocated for the purposes of the notifier but not the notifier 29762306a36Sopenharmony_ci * itself. The user is responsible for calling this function to clean up the 29862306a36Sopenharmony_ci * notifier after calling v4l2_async_nf_add_fwnode_remote(), 29962306a36Sopenharmony_ci * v4l2_async_nf_add_fwnode() or v4l2_async_nf_add_i2c(). 30062306a36Sopenharmony_ci * 30162306a36Sopenharmony_ci * There is no harm from calling v4l2_async_nf_cleanup() in other 30262306a36Sopenharmony_ci * cases as long as its memory has been zeroed after it has been 30362306a36Sopenharmony_ci * allocated. 30462306a36Sopenharmony_ci */ 30562306a36Sopenharmony_civoid v4l2_async_nf_cleanup(struct v4l2_async_notifier *notifier); 30662306a36Sopenharmony_ci 30762306a36Sopenharmony_ci/** 30862306a36Sopenharmony_ci * v4l2_async_register_subdev - registers a sub-device to the asynchronous 30962306a36Sopenharmony_ci * subdevice framework 31062306a36Sopenharmony_ci * 31162306a36Sopenharmony_ci * @sd: pointer to &struct v4l2_subdev 31262306a36Sopenharmony_ci */ 31362306a36Sopenharmony_ciint v4l2_async_register_subdev(struct v4l2_subdev *sd); 31462306a36Sopenharmony_ci 31562306a36Sopenharmony_ci/** 31662306a36Sopenharmony_ci * v4l2_async_register_subdev_sensor - registers a sensor sub-device to the 31762306a36Sopenharmony_ci * asynchronous sub-device framework and 31862306a36Sopenharmony_ci * parse set up common sensor related 31962306a36Sopenharmony_ci * devices 32062306a36Sopenharmony_ci * 32162306a36Sopenharmony_ci * @sd: pointer to struct &v4l2_subdev 32262306a36Sopenharmony_ci * 32362306a36Sopenharmony_ci * This function is just like v4l2_async_register_subdev() with the exception 32462306a36Sopenharmony_ci * that calling it will also parse firmware interfaces for remote references 32562306a36Sopenharmony_ci * using v4l2_async_nf_parse_fwnode_sensor() and registers the 32662306a36Sopenharmony_ci * async sub-devices. The sub-device is similarly unregistered by calling 32762306a36Sopenharmony_ci * v4l2_async_unregister_subdev(). 32862306a36Sopenharmony_ci * 32962306a36Sopenharmony_ci * While registered, the subdev module is marked as in-use. 33062306a36Sopenharmony_ci * 33162306a36Sopenharmony_ci * An error is returned if the module is no longer loaded on any attempts 33262306a36Sopenharmony_ci * to register it. 33362306a36Sopenharmony_ci */ 33462306a36Sopenharmony_ciint __must_check 33562306a36Sopenharmony_civ4l2_async_register_subdev_sensor(struct v4l2_subdev *sd); 33662306a36Sopenharmony_ci 33762306a36Sopenharmony_ci/** 33862306a36Sopenharmony_ci * v4l2_async_unregister_subdev - unregisters a sub-device to the asynchronous 33962306a36Sopenharmony_ci * subdevice framework 34062306a36Sopenharmony_ci * 34162306a36Sopenharmony_ci * @sd: pointer to &struct v4l2_subdev 34262306a36Sopenharmony_ci */ 34362306a36Sopenharmony_civoid v4l2_async_unregister_subdev(struct v4l2_subdev *sd); 34462306a36Sopenharmony_ci#endif 345