cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

fimc-is-sensor.c (732B)


      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
     11static const struct sensor_drv_data s5k6a3_drvdata = {
     12	.id		= FIMC_IS_SENSOR_ID_S5K6A3,
     13	.open_timeout	= S5K6A3_OPEN_TIMEOUT,
     14};
     15
     16static const struct of_device_id fimc_is_sensor_of_ids[] = {
     17	{
     18		.compatible	= "samsung,s5k6a3",
     19		.data		= &s5k6a3_drvdata,
     20	},
     21	{  }
     22};
     23
     24const 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}