mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 03:35:42 +07:00
1bde330ca0
Hardware could be physically mounted in any possible direction and userpspace needs to be aware of the mounting orientation in order to process sensor's data correctly. In particular this helps iio-sensor-proxy to report display's orientation properly on a phone/tablet devices. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
18 lines
333 B
C
18 lines
333 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* KXCJK-1013 3-axis accelerometer Interface
|
|
* Copyright (c) 2014, Intel Corporation.
|
|
*/
|
|
|
|
#ifndef __IIO_KXCJK_1013_H__
|
|
#define __IIO_KXCJK_1013_H__
|
|
|
|
#include <linux/iio/iio.h>
|
|
|
|
struct kxcjk_1013_platform_data {
|
|
bool active_high_intr;
|
|
struct iio_mount_matrix orientation;
|
|
};
|
|
|
|
#endif
|