Contributors: 4
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Sonic Zhang |
124 |
92.54% |
1 |
25.00% |
| Lars-Peter Clausen |
5 |
3.73% |
1 |
25.00% |
| Amit Kucheria |
3 |
2.24% |
1 |
25.00% |
| Greg Kroah-Hartman |
2 |
1.49% |
1 |
25.00% |
| Total |
134 |
|
4 |
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* ADT7316 digital temperature sensor driver supporting ADT7316/7/8 ADT7516/7/9
*
* Copyright 2010 Analog Devices Inc.
*/
#ifndef _ADT7316_H_
#define _ADT7316_H_
#include <linux/types.h>
#include <linux/pm.h>
#define ADT7316_REG_MAX_ADDR 0x3F
struct adt7316_bus {
void *client;
int irq;
int (*read)(void *client, u8 reg, u8 *data);
int (*write)(void *client, u8 reg, u8 val);
int (*multi_read)(void *client, u8 first_reg, u8 count, u8 *data);
int (*multi_write)(void *client, u8 first_reg, u8 count, u8 *data);
};
extern const struct dev_pm_ops adt7316_pm_ops;
int adt7316_probe(struct device *dev, struct adt7316_bus *bus,
const char *name);
#endif