gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / media / platform / exynos4-is / fimc-is-sensor.c
blob0e5b9fede4ae329b233aa3e7acde5ded95c18abc
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver
5 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
6 * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
7 */
9 #include "fimc-is-sensor.h"
11 static const struct sensor_drv_data s5k6a3_drvdata = {
12 .id = FIMC_IS_SENSOR_ID_S5K6A3,
13 .open_timeout = S5K6A3_OPEN_TIMEOUT,
16 static const struct of_device_id fimc_is_sensor_of_ids[] = {
18 .compatible = "samsung,s5k6a3",
19 .data = &s5k6a3_drvdata,
21 { }
24 const struct sensor_drv_data *fimc_is_sensor_get_drvdata(
25 struct device_node *node)
27 const struct of_device_id *of_id;
29 of_id = of_match_node(fimc_is_sensor_of_ids, node);
30 return of_id ? of_id->data : NULL;