xref: /kernel/linux/linux-5.10/drivers/iio/pressure/mpl115.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/iio/pressure/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Freescale MPL115A pressure/temperature sensor
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2014 Peter Meerwald <pmeerw@pmeerw.net>
68c2ecf20Sopenharmony_ci * Copyright (c) 2016 Akinobu Mita <akinobu.mita@gmail.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef _MPL115_H_
108c2ecf20Sopenharmony_ci#define _MPL115_H_
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistruct mpl115_ops {
138c2ecf20Sopenharmony_ci	int (*init)(struct device *);
148c2ecf20Sopenharmony_ci	int (*read)(struct device *, u8);
158c2ecf20Sopenharmony_ci	int (*write)(struct device *, u8, u8);
168c2ecf20Sopenharmony_ci};
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciint mpl115_probe(struct device *dev, const char *name,
198c2ecf20Sopenharmony_ci			const struct mpl115_ops *ops);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif
22

Indexes created Thu Nov 07 10:32:03 CST 2024