OpenCloudOS-Kernel/drivers/staging
Cristina Moraru 1c7be4c260 iio: hmc5843: Add attributes for measurement config of bias current
Change static attribute meas_conf for bias current configuration
to channel attribute in_magn_meas_conf and also add
in_magn_meas_conf_available attribute to view available configurations.

This patch solves functionality bug: driver was using same function
hmc5843_set_measurement_configuration for setting bias current config
for all device types but the function was returning -EINVAL for any
setting >= 0x03 although, for sensor HMC5983, value 3 is valid.

API for setting bias measurement configuration:

normal - 	Normal measurement configuration (default):
		In normal measurement configuration the device
		follows normal measurement flow. Pins BP and BN
		are left floating and high impedance.

positivebias - 	Positive bias configuration: In positive bias
		configuration, a positive current is forced across
		the resistive load on pins BP and BN.

negativebias - 	Negative bias configuration. In negative bias
		configuration, a negative current is forced across
		the resistive load on pins BP and BN.

disabled     - 	Only available on HMC5983. Magnetic sensor is disabled.
		Temperature sensor is enabled.

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Cc: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-02-21 20:22:21 +00:00
..
android drivers/staging/android: don't use modular references in sync_debug.c 2016-02-14 16:35:00 -08:00
board Staging: board: Blank lines aren't necessary before a close brace 2016-02-07 19:57:22 -08:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi Staging: comedi: Prefer using the BIT macro 2016-02-11 19:47:27 -08:00
dgnc staging: dgnc: convert to wait_event_interruptible_timeout 2016-02-11 19:51:46 -08:00
emxx_udc staging: emxx_udc: Remove parentheses around the right hand side of assignment 2016-02-11 20:05:35 -08:00
fbtft staging: fbtft: Remove the use of CamelCase 2016-02-14 16:22:49 -08:00
fsl-mc staging: fsl-mc: Remove unneeded parentheses 2016-02-11 20:05:35 -08:00
fwserial staging: fwserial: (coding-style) rewrite comparisons to NULL as "!fifo->data" 2016-02-07 19:36:14 -08:00
gdm72xx staging: gdm72xx: compress return logic into one line 2016-02-11 20:00:30 -08:00
gdm724x staging: gdm724x: gdm_mux: Remove create_workqueue() 2016-02-14 16:52:15 -08:00
goldfish staging: goldfish: goldfish_nand: Return correct error code 2016-02-14 16:52:53 -08:00
gs_fpgaboot Staging: gs_fpgaboot: fix data types in gs_fpgaboot.c 2016-02-07 20:07:29 -08:00
iio iio: hmc5843: Add attributes for measurement config of bias current 2016-02-21 20:22:21 +00:00
lustre Staging: lustre: obdclass: Declare function as static 2016-02-14 16:21:15 -08:00
media Staging: media: Remove multiple assignments 2016-02-14 16:34:08 -08:00
most staging: most: return proper error 2016-02-11 19:40:02 -08:00
mt29f_spinand staging: mt29f: clean up existing kernel-doc 2016-02-07 20:12:11 -08:00
netlogic staging: netlogic: Fix parenthesis alignment 2016-02-14 16:49:09 -08:00
nvec Staging: nvec: Modify the nvec_write_sync method to return the error code 2016-02-14 16:52:15 -08:00
octeon staging: octeon: support fixed-link phys 2016-02-14 16:52:15 -08:00
octeon-usb staging: octeon-usb: support official bindings 2016-02-14 16:52:15 -08:00
rdma Staging: rdma: hfi1: Delete NULL check before vfree 2016-02-14 16:44:06 -08:00
rtl8188eu Staging: rtl8188eu: os_dep: Remove NULL test before rtw_free_netdev 2016-02-14 16:44:06 -08:00
rtl8192e staging: rtl8192e: prefer using eth_broadcast_addr() 2016-02-11 20:05:35 -08:00
rtl8192u Staging: rtl819u: ieee80211: Remove function ieee80211_wep_null 2016-02-14 16:49:09 -08:00
rtl8712 staging: rtl8712: Remove unnecessary ret variable 2016-02-14 16:49:09 -08:00
rtl8723au Staging: rtl8723au: Replace header files 2016-02-14 16:49:09 -08:00
rts5208 staging: rts5208: Place constants on the right side of comparisons 2016-02-14 16:44:06 -08:00
skein skein: fix coding style 2015-10-24 19:30:12 -07:00
slicoss staging: slicoss: Align #define constants 2016-02-11 19:50:11 -08:00
sm750fb staging: sm750fb: Fix indentation of if...else statements 2016-02-14 16:49:09 -08:00
speakup staging: speakup: Fix block comment style 2016-02-14 16:49:09 -08:00
ste_rmi4 staging: ste_rmi4: avoid unused function warnings 2016-02-07 20:03:50 -08:00
unisys staging: unisys: Modify boolean assignment 2016-02-11 19:37:15 -08:00
vme drivers: staging: vme: Deleted casting to (void *) 2015-11-24 15:30:50 -08:00
vt6655 staging: vt6655: Add missing blank line after declaration 2016-02-14 16:58:33 -08:00
vt6656 staging: vt6656: move local var init into declaration 2016-02-14 16:25:38 -08:00
wilc1000 staging: wilc1000: linux_mon.c: Remove unneeded braces 2016-02-14 16:31:50 -08:00
wlan-ng Staging: wlan-ng: Remove function prototype 2016-02-14 16:34:08 -08:00
xgifb staging: xgifb: Fix comment style 2016-02-14 17:01:26 -08:00
Kconfig misc: Move panel driver out of staging 2016-02-03 14:14:22 -08:00
Makefile staging: drop kbuild workaround dummy module from top dir 2016-02-07 18:40:03 -08:00