blob: d5b140cb22cda05257d9fa205c5dd479032667c8 [file] [log] [blame]
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that 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.
*/
#ifndef __LINUX_SENSORS_H_INCLUDED
#define __LINUX_SENSORS_H_INCLUDED
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/rwsem.h>
struct sensors_classdev {
struct device *dev;
struct list_head node;
const char *name;
const char *vendor;
int version;
int handle;
int type;
const char *max_range;
const char *resolution;
const char *sensor_power;
int min_delay;
int fifo_reserved_event_count;
int fifo_max_event_count;
};
extern int sensors_classdev_register(struct device *parent,
struct sensors_classdev *sensors_cdev);
extern void sensors_classdev_unregister(struct sensors_classdev *sensors_cdev);
#endif /* __LINUX_SENSORS_H_INCLUDED */