Merge tag 'char-misc-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[linux-block.git] / include / linux / iio / iio.h
index e370a7bb3300b770f614696c55e2225f8b3e8464..55e2b22086a1aac4f975f6d0b8ffa16c7c8fc794 100644 (file)
@@ -788,6 +788,19 @@ static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev)
 }
 #endif
 
+#ifdef CONFIG_ACPI
+bool iio_read_acpi_mount_matrix(struct device *dev,
+                               struct iio_mount_matrix *orientation,
+                               char *acpi_method);
+#else
+static inline bool iio_read_acpi_mount_matrix(struct device *dev,
+                                             struct iio_mount_matrix *orientation,
+                                             char *acpi_method)
+{
+       return false;
+}
+#endif
+
 ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals);
 
 int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer,