Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1346463

extending /sys/.../iio:deviceX/in_accelX_power_mode

From Martin Kepplinger <martink@posteo.de>
Newsgroups linux.kernel
Subject extending /sys/.../iio:deviceX/in_accelX_power_mode
Date 2016-03-01 10:10 +0100
Message-ID <r7OtA-75N-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Would it be ok, if adding in_accelX_power_mode to a driver, to extend it
so that in_accel_power_mode_available offers:

low_noise low_power low_power_low_noise normal

if there's a default "normal" mode, plus options to increase or decrease
oversampling / power consumption for my device?

Specifically I'm unsure about "low_power_low_noise" being enough
user-friendly. The chip I work with just happens to offer these 4 modes.
Would you leave out "low_power_low_noise" and go with

low_noise low_power normal

or is it not even desired to add "normal" to the list?

Although strictly not necessary, I would add any new addition to the
Documentation as well.

thanks
                            martin

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

extending /sys/.../iio:deviceX/in_accelX_power_mode Martin Kepplinger <martink@posteo.de> - 2016-03-01 10:10 +0100
  Re: extending /sys/.../iio:deviceX/in_accelX_power_mode Daniel Baluta <daniel.baluta@intel.com> - 2016-03-01 10:40 +0100
    Re: extending /sys/.../iio:deviceX/in_accelX_power_mode Martin Kepplinger <martink@posteo.de> - 2016-03-01 10:50 +0100
      Re: extending /sys/.../iio:deviceX/in_accelX_power_mode Crt Mori <cmo@melexis.com> - 2016-03-01 11:00 +0100
        Re: extending /sys/.../iio:deviceX/in_accelX_power_mode Martin Kepplinger <martink@posteo.de> - 2016-03-01 11:10 +0100

csiph-web