root/drivers/media/platform/exynos4-is/fimc-is-sensor.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. fimc_is_sensor_get_drvdata

   1 // SPDX-License-Identifier: GPL-2.0-only
   2 /*
   3  * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver
   4  *
   5  * Copyright (C) 2013 Samsung Electronics Co., Ltd.
   6  * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
   7  */
   8 
   9 #include "fimc-is-sensor.h"
  10 
  11 static const struct sensor_drv_data s5k6a3_drvdata = {
  12         .id             = FIMC_IS_SENSOR_ID_S5K6A3,
  13         .open_timeout   = S5K6A3_OPEN_TIMEOUT,
  14 };
  15 
  16 static const struct of_device_id fimc_is_sensor_of_ids[] = {
  17         {
  18                 .compatible     = "samsung,s5k6a3",
  19                 .data           = &s5k6a3_drvdata,
  20         },
  21         {  }
  22 };
  23 
  24 const struct sensor_drv_data *fimc_is_sensor_get_drvdata(
  25                         struct device_node *node)
  26 {
  27         const struct of_device_id *of_id;
  28 
  29         of_id = of_match_node(fimc_is_sensor_of_ids, node);
  30         return of_id ? of_id->data : NULL;
  31 }

/* [<][>][^][v][top][bottom][index][help] */