Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: trigger: make stub functions static inline

Make sure that the trigger function stubs are all static inline.
Otherwise we might see compiler warnings about declared but unused
functions.

Fixes 77712e5fbe2e4: ("Staging: iio: Staticise non-exported functions")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
4d55cb8e 33825b27

+2 -2
+2 -2
drivers/iio/iio_core_trigger.h
··· 30 30 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers 31 31 * @indio_dev: iio_dev associated with the device that will consume the trigger 32 32 **/ 33 - static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) 33 + static inline int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) 34 34 { 35 35 return 0; 36 36 } ··· 39 39 * iio_device_unregister_trigger_consumer() - reverse the registration process 40 40 * @indio_dev: iio_dev associated with the device that consumed the trigger 41 41 **/ 42 - static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) 42 + static inline void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) 43 43 { 44 44 } 45 45