All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RFC] iio: hi8435: do not enable all events by default
@ 2017-05-23  8:08 Nikita Yushchenko
  2017-05-24 19:27 ` Jonathan Cameron
  0 siblings, 1 reply; 8+ messages in thread
From: Nikita Yushchenko @ 2017-05-23  8:08 UTC (permalink / raw)
  To: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Sanchayan Maity, Gregor Boirie,
	Matt Ranostay
  Cc: linux-iio, linux-kernel, Chris Healy, Jeff White,
	Vladimir Barinov, Nikita Yushchenko

Having all events enabled by default is misleading.
Userspace should explicitly enable events they want to receive.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
---
 drivers/iio/adc/hi8435.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c
index ef5c286c8e67..0331739f235c 100644
--- a/drivers/iio/adc/hi8435.c
+++ b/drivers/iio/adc/hi8435.c
@@ -506,8 +506,6 @@ static int hi8435_probe(struct spi_device *spi)
 	idev->channels		= hi8435_channels;
 	idev->num_channels	= ARRAY_SIZE(hi8435_channels);
 
-	/* unmask all events */
-	priv->event_scan_mask = ~(0);
 	/*
 	 * There is a restriction in the chip - the hysteresis can not be odd.
 	 * If the hysteresis is set to odd value then chip gets into lock state
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-09  9:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23  8:08 [PATCH/RFC] iio: hi8435: do not enable all events by default Nikita Yushchenko
2017-05-24 19:27 ` Jonathan Cameron
2017-05-25  5:47   ` Nikita Yushchenko
2017-05-28 15:48     ` Jonathan Cameron
     [not found]       ` <CY4PR12MB12549ADA207663849E8DBE8583F20@CY4PR12MB1254.namprd12.prod.outlook.com>
2017-05-28 17:00         ` Fw: " Chris Healy
2017-05-29  5:40       ` Nikita Yushchenko
2017-06-03  9:07         ` Jonathan Cameron
2017-06-09  9:17         ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.