zpa2326.c (e98bdb3059cbf2b1cd4261e126b08429f64466c3) | zpa2326.c (af873b0d8f586c07ec329d6d91eaa58ba5d7c662) |
---|---|
1/* 2 * Murata ZPA2326 pressure and temperature sensor IIO driver 3 * 4 * Copyright (c) 2016 Parrot S.A. 5 * 6 * Author: Gregor Boirie <gregor.boirie@parrot.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 737 unchanged lines hidden (view full) --- 746 * 747 * Timestamp buffered samples as soon as possible then schedule threaded bottom 748 * half. 749 * 750 * Return: Always successful. 751 */ 752static irqreturn_t zpa2326_handle_irq(int irq, void *data) 753{ | 1/* 2 * Murata ZPA2326 pressure and temperature sensor IIO driver 3 * 4 * Copyright (c) 2016 Parrot S.A. 5 * 6 * Author: Gregor Boirie <gregor.boirie@parrot.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 737 unchanged lines hidden (view full) --- 746 * 747 * Timestamp buffered samples as soon as possible then schedule threaded bottom 748 * half. 749 * 750 * Return: Always successful. 751 */ 752static irqreturn_t zpa2326_handle_irq(int irq, void *data) 753{ |
754 struct iio_dev *indio_dev = (struct iio_dev *)data; | 754 struct iio_dev *indio_dev = data; |
755 756 if (iio_buffer_enabled(indio_dev)) { 757 /* Timestamping needed for buffered sampling only. */ 758 ((struct zpa2326_private *) 759 iio_priv(indio_dev))->timestamp = iio_get_time_ns(indio_dev); 760 } 761 762 return IRQ_WAKE_THREAD; --- 22 unchanged lines hidden (view full) --- 785 * See zpa2326_trigger_handler(). 786 * 787 * Return: 788 * %IRQ_NONE - no consistent interrupt happened ; 789 * %IRQ_HANDLED - there was new samples available. 790 */ 791static irqreturn_t zpa2326_handle_threaded_irq(int irq, void *data) 792{ | 755 756 if (iio_buffer_enabled(indio_dev)) { 757 /* Timestamping needed for buffered sampling only. */ 758 ((struct zpa2326_private *) 759 iio_priv(indio_dev))->timestamp = iio_get_time_ns(indio_dev); 760 } 761 762 return IRQ_WAKE_THREAD; --- 22 unchanged lines hidden (view full) --- 785 * See zpa2326_trigger_handler(). 786 * 787 * Return: 788 * %IRQ_NONE - no consistent interrupt happened ; 789 * %IRQ_HANDLED - there was new samples available. 790 */ 791static irqreturn_t zpa2326_handle_threaded_irq(int irq, void *data) 792{ |
793 struct iio_dev *indio_dev = (struct iio_dev *)data; | 793 struct iio_dev *indio_dev = data; |
794 struct zpa2326_private *priv = iio_priv(indio_dev); 795 unsigned int val; 796 bool cont; 797 irqreturn_t ret = IRQ_NONE; 798 799 /* 800 * Are we using our own internal trigger in triggered buffer mode, i.e., 801 * currently working in continuous sampling mode ? --- 930 unchanged lines hidden --- | 794 struct zpa2326_private *priv = iio_priv(indio_dev); 795 unsigned int val; 796 bool cont; 797 irqreturn_t ret = IRQ_NONE; 798 799 /* 800 * Are we using our own internal trigger in triggered buffer mode, i.e., 801 * currently working in continuous sampling mode ? --- 930 unchanged lines hidden --- |