iio:st_sensors more fixes when !IIO_CONFIG_TRIGGER
Jonathan Cameron
maintainercover iio:st_sensors more fixes when !IIO_CONFIG_TRIGGER
Here is how I would suggest dealing with the issues pointed out by Randy when buildling without trigger support.
Jonathan
Jonathan Cameron (2):
iio:triggers Protect functions in triggers.h from use when not
compiled
iio:st_sensors fix build when !CONFIG_IIO_TRIGGER
drivers/iio/accel/st_accel_core.c | 9 +++++++-- drivers/iio/accel/st_accel_i2c.c | 1 - drivers/iio/accel/st_accel_spi.c | 1 - drivers/iio/gyro/st_gyro_core.c | 9 +++++++-- drivers/iio/gyro/st_gyro_i2c.c | 1 - drivers/iio/gyro/st_gyro_spi.c | 1 - drivers/iio/magnetometer/st_magn_core.c | 1 - drivers/iio/magnetometer/st_magn_i2c.c | 1 - drivers/iio/magnetometer/st_magn_spi.c | 1 - include/linux/iio/trigger.h | 5 +++++ 10 files changed, 19 insertions(+), 11 deletions(-)
Signature · 1 line
1.8.1.1
Jonathan Cameron
maintainerQuoted 2 lines · Jonathan Cameron
Here is how I would suggest dealing with the issues pointed out by Randy when buildling without trigger support.
Sorry, miss send of this patch when I meant the ak8975 one that will follow in a mo.
Quoted 20 lines
Jonathan
Jonathan Cameron (2):
iio:triggers Protect functions intriggers.hfrom use when not
compiled
iio:st_sensors fix build when !CONFIG_IIO_TRIGGERdrivers/iio/accel/st_accel_core.c | 9 +++++++-- drivers/iio/accel/st_accel_i2c.c | 1 - drivers/iio/accel/st_accel_spi.c | 1 - drivers/iio/gyro/st_gyro_core.c | 9 +++++++-- drivers/iio/gyro/st_gyro_i2c.c | 1 - drivers/iio/gyro/st_gyro_spi.c | 1 - drivers/iio/magnetometer/st_magn_core.c | 1 - drivers/iio/magnetometer/st_magn_i2c.c | 1 - drivers/iio/magnetometer/st_magn_spi.c | 1 - include/linux/iio/trigger.h | 5 +++++ 10 files changed, 19 insertions(+), 11 deletions(-)