/** * sensor_common.h - utilities for tegra camera driver * * Copyright (c) 2017-2019, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __sensor_common__ #define __sensor_common__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct sensor_properties { struct sensor_cfg cfg; /* sensor_modes points to an array of mode properties */ struct sensor_mode_properties *sensor_modes; u32 num_modes; }; int sensor_common_parse_num_modes(const struct device *dev); int sensor_common_init_sensor_properties( struct device *dev, struct device_node *node, struct sensor_properties *sensor); #endif /* __sensor_common__ */