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


Groups > linux.kernel > #1327067

Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration

From Lars-Peter Clausen <lars@metafoo.de>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration
Date 2016-02-04 18:50 +0100
Message-ID <qYwcx-5aH-1@gated-at.bofh.it> (permalink)
References <qYty3-3iA-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 02/04/2016 03:50 PM, Cristina Moraru wrote:
> Replace non standard meas_conf attribute with the standard IIO
> calibbias attribute.
> 
> API for setting bias measurement configuration:
> 
> 0 - Normal measurement configuration (default): In normal measurement
>     configuration the device follows normal measurement flow. Pins BP
>     and BN are left floating and high impedance.
> 
> 1 - Positive bias configuration: In positive bias configuration, a
>     positive current is forced across the resistive load on pins BP
>     and BN.
> 
> 2 - Negative bias configuration. In negative bias configuration, a
>     negative current is forced across the resistive load on pins BP
>     and BN.
> 
> 3 - Only available on HMC5983. Magnetic sensor is disabled.
>     Temperature sensor is enabled.
> 
> With this in place, we can think of moving this driver out of staging.

Using a standard attribute, but overloading it with custom semantics doesn't
do any good either. calibbias is supposed to be a integer that gets added to
measurements internally in the device (unit is device specific though).

This attribute seems to do something else. In that case it might be better
to stay with a custom attribute (as long as it is documented) or come up
with a better way to map the device configuration onto standard attributes.

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


Thread

[RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration Cristina Moraru <cristina.moraru09@gmail.com> - 2016-02-04 16:00 +0100
  Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias  configuration Lars-Peter Clausen <lars@metafoo.de> - 2016-02-04 18:50 +0100
    Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration Daniel Baluta <daniel.baluta@intel.com> - 2016-02-05 11:00 +0100
      Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias  configuration Jonathan Cameron <jic23@kernel.org> - 2016-02-06 19:10 +0100
    Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias  configuration Jonathan Cameron <jic23@kernel.org> - 2016-02-06 19:10 +0100

csiph-web