summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/st_gyro_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron2013-02-09 11:49:00 +0100
committerJonathan Cameron2013-02-09 16:22:29 +0100
commit8ce4a56a52bf566659768a9e46e759e7cd5f33d9 (patch)
tree427bc7884341bebc2fb5f96e3ebf1beb892a790e /drivers/iio/gyro/st_gyro_i2c.c
parentiio:triggers Protect functions in triggers.h from use when not compiled (diff)
downloadkernel-qcow2-linux-8ce4a56a52bf566659768a9e46e759e7cd5f33d9.tar.gz
kernel-qcow2-linux-8ce4a56a52bf566659768a9e46e759e7cd5f33d9.tar.xz
kernel-qcow2-linux-8ce4a56a52bf566659768a9e46e759e7cd5f33d9.zip
iio:st_sensors fix build when !CONFIG_IIO_TRIGGER
Partly a case of removing unused headers and partly a case of ifdefing out the iio_trigger_ops structures. This has come about because of an 'unusual' separation of code in this driver. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reported-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Denis Ciocca <denis.ciocca@st.com>
Diffstat (limited to 'drivers/iio/gyro/st_gyro_i2c.c')
-rw-r--r--drivers/iio/gyro/st_gyro_i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/gyro/st_gyro_i2c.c b/drivers/iio/gyro/st_gyro_i2c.c
index a44b5b4a2013..8a310500573d 100644
--- a/drivers/iio/gyro/st_gyro_i2c.c
+++ b/drivers/iio/gyro/st_gyro_i2c.c
@@ -13,7 +13,6 @@
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/iio/iio.h>
-#include <linux/iio/trigger.h>
#include <linux/iio/common/st_sensors.h>
#include <linux/iio/common/st_sensors_i2c.h>