@@ -238,36 +238,20 @@ enum video_signal_result {
238
238
};
239
239
240
240
/**
241
- * @typedef video_api_set_format_t
242
- * @brief Set video format
241
+ * @typedef video_api_format_t
242
+ * @brief Function pointer type for video_set/get_format()
243
243
*
244
- * See video_set_format () for argument descriptions.
244
+ * See video_set/get_format () for argument descriptions.
245
245
*/
246
- typedef int (* video_api_set_format_t )(const struct device * dev , struct video_format * fmt );
246
+ typedef int (* video_api_format_t )(const struct device * dev , struct video_format * fmt );
247
247
248
248
/**
249
- * @typedef video_api_get_format_t
250
- * @brief Get current video format
249
+ * @typedef video_api_frmival_t
250
+ * @brief Function pointer type for video_set/get_frmival()
251
251
*
252
- * See video_get_format () for argument descriptions.
252
+ * See video_set/get_frmival () for argument descriptions.
253
253
*/
254
- typedef int (* video_api_get_format_t )(const struct device * dev , struct video_format * fmt );
255
-
256
- /**
257
- * @typedef video_api_set_frmival_t
258
- * @brief Set video frame interval
259
- *
260
- * See video_set_frmival() for argument descriptions.
261
- */
262
- typedef int (* video_api_set_frmival_t )(const struct device * dev , struct video_frmival * frmival );
263
-
264
- /**
265
- * @typedef video_api_get_frmival_t
266
- * @brief Get current video frame interval
267
- *
268
- * See video_get_frmival() for argument descriptions.
269
- */
270
- typedef int (* video_api_get_frmival_t )(const struct device * dev , struct video_frmival * frmival );
254
+ typedef int (* video_api_frmival_t )(const struct device * dev , struct video_frmival * frmival );
271
255
272
256
/**
273
257
* @typedef video_api_enum_frmival_t
@@ -345,8 +329,8 @@ typedef int (*video_api_set_signal_t)(const struct device *dev, struct k_poll_si
345
329
346
330
__subsystem struct video_driver_api {
347
331
/* mandatory callbacks */
348
- video_api_set_format_t set_format ;
349
- video_api_get_format_t get_format ;
332
+ video_api_format_t set_format ;
333
+ video_api_format_t get_format ;
350
334
video_api_set_stream_t set_stream ;
351
335
video_api_get_caps_t get_caps ;
352
336
/* optional callbacks */
@@ -356,8 +340,8 @@ __subsystem struct video_driver_api {
356
340
video_api_ctrl_t set_ctrl ;
357
341
video_api_ctrl_t get_volatile_ctrl ;
358
342
video_api_set_signal_t set_signal ;
359
- video_api_set_frmival_t set_frmival ;
360
- video_api_get_frmival_t get_frmival ;
343
+ video_api_frmival_t set_frmival ;
344
+ video_api_frmival_t get_frmival ;
361
345
video_api_enum_frmival_t enum_frmival ;
362
346
};
363
347
0 commit comments