Debian Codegraph @

drivers/iio/pressure/mpl115.h

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Freescale MPL115A pressure/temperature sensor
4 *
5 * Copyright (c) 2014 Peter Meerwald <[email protected]>
6 * Copyright (c) 2016 Akinobu Mita <[email protected]>
7 */
8
9 #include <linux/pm_runtime.h>
10
11 #ifndef _MPL115_H_
12 #define _MPL115_H_
13
14 struct mpl115_ops {
15 int (*init)(struct device *);
16 int (*read)(struct device *, u8);
17 int (*write)(struct device *, u8, u8);
18 };
19
20 int mpl115_probe(struct device *dev, const char *name,
21 const struct mpl115_ops *ops);
22
23 /*PM ops */
24 extern const struct dev_pm_ops mpl115_dev_pm_ops;
25
26 #endif