Source
x
"Alert received, but can't communicate to the device. Triggering all alarms!");
/*
* STTS751 sensor driver
*
* Copyright (C) 2016-2017 Istituto Italiano di Tecnologia - RBCS - EDL
* Robotics, Brain and Cognitive Sciences department
* Electronic Design Laboratory
*
* Written by Andrea Merello <andrea.merello@gmail.com>
*
* Based on LM95241 driver and LM90 driver
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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.
*/
static const unsigned short normal_i2c[] = {
0x48, 0x49, 0x38, 0x39, /* STTS751-0 */
0x4A, 0x4B, 0x3A, 0x3B, /* STTS751-1 */
I2C_CLIENT_END };
/*
* Possible update intervals are (in mS):
* 16000, 8000, 4000, 2000, 1000, 500, 250, 125, 62.5, 31.25
* However we are not going to complicate things too much and we stick to the
* approx value in mS.
*/
static const int stts751_intervals[] = {
16000, 8000, 4000, 2000, 1000, 500, 250, 125, 63, 31
};
static const struct i2c_device_id stts751_id[] = {
{ "stts751", 0 },
{ }
};
static const struct of_device_id stts751_of_match[] = {
{ .compatible = "stts751" },
{ },
};
MODULE_DEVICE_TABLE(of, stts751_of_match);