mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 10:37:53 +07:00
fda8d26e61
Based on 1 normalized pattern(s): licensed under the gpl 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 135 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170026.071193225@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* STMicroelectronics pressures driver
|
|
*
|
|
* Copyright 2013 STMicroelectronics Inc.
|
|
*
|
|
* Denis Ciocca <denis.ciocca@st.com>
|
|
* v. 1.0.0
|
|
*/
|
|
|
|
#ifndef ST_PRESS_H
|
|
#define ST_PRESS_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/iio/common/st_sensors.h>
|
|
|
|
enum st_press_type {
|
|
LPS001WP,
|
|
LPS25H,
|
|
LPS331AP,
|
|
LPS22HB,
|
|
LPS33HW,
|
|
LPS35HW,
|
|
LPS22HH,
|
|
ST_PRESS_MAX,
|
|
};
|
|
|
|
#define LPS001WP_PRESS_DEV_NAME "lps001wp"
|
|
#define LPS25H_PRESS_DEV_NAME "lps25h"
|
|
#define LPS331AP_PRESS_DEV_NAME "lps331ap"
|
|
#define LPS22HB_PRESS_DEV_NAME "lps22hb"
|
|
#define LPS33HW_PRESS_DEV_NAME "lps33hw"
|
|
#define LPS35HW_PRESS_DEV_NAME "lps35hw"
|
|
#define LPS22HH_PRESS_DEV_NAME "lps22hh"
|
|
|
|
/**
|
|
* struct st_sensors_platform_data - default press platform data
|
|
* @drdy_int_pin: default press DRDY is available on INT1 pin.
|
|
*/
|
|
static const struct st_sensors_platform_data default_press_pdata = {
|
|
.drdy_int_pin = 1,
|
|
};
|
|
|
|
int st_press_common_probe(struct iio_dev *indio_dev);
|
|
void st_press_common_remove(struct iio_dev *indio_dev);
|
|
|
|
#ifdef CONFIG_IIO_BUFFER
|
|
int st_press_allocate_ring(struct iio_dev *indio_dev);
|
|
void st_press_deallocate_ring(struct iio_dev *indio_dev);
|
|
int st_press_trig_set_state(struct iio_trigger *trig, bool state);
|
|
#define ST_PRESS_TRIGGER_SET_STATE (&st_press_trig_set_state)
|
|
#else /* CONFIG_IIO_BUFFER */
|
|
static inline int st_press_allocate_ring(struct iio_dev *indio_dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void st_press_deallocate_ring(struct iio_dev *indio_dev)
|
|
{
|
|
}
|
|
#define ST_PRESS_TRIGGER_SET_STATE NULL
|
|
#endif /* CONFIG_IIO_BUFFER */
|
|
|
|
#endif /* ST_PRESS_H */
|