vcnl4000.c (b8fa3e3833c14151a47ebebbc5427dcfe94bb407) | vcnl4000.c (f700e55ef6ef9ec723164659ed4385900981c872) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * vcnl4000.c - Support for Vishay VCNL4000/4010/4020/4040/4200 combined ambient 4 * light and proximity sensor 5 * 6 * Copyright 2012 Peter Meerwald <pmeerw@pmeerw.net> 7 * Copyright 2019 Pursim SPC 8 * Copyright 2020 Mathieu Othacehe <m.othacehe@gmail.com> --- 1064 unchanged lines hidden (view full) --- 1073 iio_get_time_ns(indio_dev)); 1074 } 1075 1076 i2c_smbus_write_byte_data(data->client, VCNL4010_ISR, 1077 isr & VCNL4010_INT_THR); 1078 } 1079 1080 if (isr & VCNL4010_INT_DRDY && iio_buffer_enabled(indio_dev)) | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * vcnl4000.c - Support for Vishay VCNL4000/4010/4020/4040/4200 combined ambient 4 * light and proximity sensor 5 * 6 * Copyright 2012 Peter Meerwald <pmeerw@pmeerw.net> 7 * Copyright 2019 Pursim SPC 8 * Copyright 2020 Mathieu Othacehe <m.othacehe@gmail.com> --- 1064 unchanged lines hidden (view full) --- 1073 iio_get_time_ns(indio_dev)); 1074 } 1075 1076 i2c_smbus_write_byte_data(data->client, VCNL4010_ISR, 1077 isr & VCNL4010_INT_THR); 1078 } 1079 1080 if (isr & VCNL4010_INT_DRDY && iio_buffer_enabled(indio_dev)) |
1081 iio_trigger_poll_chained(indio_dev->trig); | 1081 iio_trigger_poll_nested(indio_dev->trig); |
1082 1083end: 1084 return IRQ_HANDLED; 1085} 1086 1087static irqreturn_t vcnl4010_trigger_handler(int irq, void *p) 1088{ 1089 struct iio_poll_func *pf = p; --- 423 unchanged lines hidden --- | 1082 1083end: 1084 return IRQ_HANDLED; 1085} 1086 1087static irqreturn_t vcnl4010_trigger_handler(int irq, void *p) 1088{ 1089 struct iio_poll_func *pf = p; --- 423 unchanged lines hidden --- |