Srinivas Pandruvada
f0ca974920
iio: accel: kxcjk-1013: Fix setting frequency
...
Fix issue with setting of 12.5 and 6.25 HZ. The match of val2 fails.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-20 16:18:58 +01:00
Reyad Attiyat
abea9c62c3
iio: hid-sensor-magn-3d: Add support for rotation from north
...
Add the HID usage attribute ID's and IIO channel info for rotation
from north support.
Signed-off-by: Reyad Attiyat <reyad.attiyat@gmail.com >
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-20 13:39:35 +01:00
Reyad Attiyat
2a96540a5c
iio: hid-sensor-magn-3d: Scan for usage attributes before setting up iio channels
...
Scan for and count the HID usage attributes supported by the driver.
This allows for the driver to only setup the IIO channels for the
sensor usages present in the HID USB reports.
Changes from v5
-Fixed kernel panic from invalid pointer dereference
-Fixed variable assignment style
Signed-off-by: Reyad Attiyat <reyad.attiyat@gmail.com >
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-20 13:37:52 +01:00
Reyad Attiyat
11b8ddab81
iio: types: Added support for rotation from north usage attributes
...
Added the rotation from north usage attributes to the iio modifier enum and to the iio modifier names array.
Signed-off-by: Reyad Attiyat <reyad.attiyat@gmail.com >
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-20 13:34:45 +01:00
Reyad Attiyat
b531db8456
iio: Documentation: Add documentation for rotation from north sensor usage attributes
...
Added documentation for the sysfs attributes supported by the rotation from north
sensor.
Signed-off-by: Reyad Attiyat <reyad.attiyat@gmail.com >
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-20 13:30:59 +01:00
Peter Meerwald
3008d082f2
iio:adc:ad799x: Allow writing of event config
...
Allows explicity enabling of events
Previously, events were always reported as enabled, but actually only
implicitly enabled when updating the buffer scan mode
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:59:40 +01:00
Peter Meerwald
1d15330a39
iio:adc:ad799x: Return more meaningful event enabled state
...
only report an event as enabled if it actually is enabled
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:58:59 +01:00
Peter Meerwald
8235841b95
iio:adc:ad799x: Set conversion channels and rename ad7997_8_update_scan_mode()
...
rename since function is used by all chips with ALERT pin, not just ad7997/8
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:57:56 +01:00
Peter Meerwald
0f7ddcc1bf
iio:adc:ad799x: Write default config on probe and reset alert status on probe
...
writing ALERT_EN and BUSY_ALERT to the chip config register clears
pending alerts, BUSY_ALERT is cleared when reading back the register
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:57:35 +01:00
Peter Meerwald
89ca79afe5
iio:adc:ad799x: Add helper function to read/write config register
...
16-bit on ad7997/ad7998, 8-bit elsewhere
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:57:09 +01:00
Peter Meerwald
ef0bf6f82d
iio:adc:ad799x: Make chan_spec const in ad799x_chip_config struct
...
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:56:49 +01:00
Peter Meerwald
91556c6939
iio:adc:ad799x: Only expose event interface when IRQ is available
...
an IRQ is necessary to handle the ALERT condition; without
IRQ, the IIO event interface serves no purpose
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:56:14 +01:00
Peter Meerwald
e1c6e2a217
iio:adc:ad799x: Use BIT() and GENMASK()
...
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:55:42 +01:00
Peter Meerwald
bd3bd4328a
iio:adc:ad799x: Save some lines in ad7997_8_update_scan_mode() exit handling
...
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:48:43 +01:00
Peter Meerwald
541544712e
iio:adc:ad799x: Drop I2C access helper functions
...
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net >
Acked-by: Lars-Peter Clausen <lars@metafoo.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-07-13 21:46:54 +01:00
Greg Kroah-Hartman
db7c17ecbf
Merge tag 'iio-for-3.17c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
...
Jonathan writes:
3rd round of IIO new drivers, cleanups and functionality for the 3.17 cycle.
New drivers
* isl29125 digital color light sensor driver
* TAOS/AMS tcs3414 digital color sensor
Staging graduation
* ad7291 ADC driver.
New functionality
* st_sensors - device tree support and bindings
* mma8452 - device tree support
Cleanups
* Drop redundant variables in a number of drivers.
* Reorder a structure definition to ealy wiht a warning about static
not being at the beginning in the hid-sensors driver.
* Switch a few more drivers away from using explicit sampling_frequency
attribute to providing this through the core.
* Make hid_sensor_get_reporting_interval static as only used within a single
file.
* Drop a redundant check for negative values in an unsigned variable from
ad9832
* Drop some duplicate case labels in the event monitor example code.
* Use devm_ioremap_resource to simplify error handling.
* Use devm_kzalloc within the blackfin timer driver to simplify error
handling and removal.
* A number of cleanups of the ad7291 from Hartmut Knaack in response
to a patch moving it out of staging.
* Core support for the period info element about events. It has been
in the abi for a while, but not added until now to the newer handling
of information related to events.
* Add HAS_IOMEM dependency to mxs_lradc to avoid build issues when testing
enabled.
2014-07-13 12:31:47 -07:00
navin patidar
01e1162946
staging: rtl8188eu: Rename _rtw_init_mlme_priv() to rtw_init_mlme_priv()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:29:47 -07:00
navin patidar
3596d6d6d8
staging: rtl8188eu: Rename _rtw_free_mlme_priv() to rtw_free_mlme_priv()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:29:47 -07:00
navin patidar
246cf9ec61
staging: rtl8188eu: Remove unused function _rtw_enqueue_network()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:29:46 -07:00
navin patidar
4b5a1c16ba
staging: rtl8188eu: Remove unused function _rtw_dequeue_network()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:29:24 -07:00
navin patidar
fe80537a5c
staging: rtl8188eu: Make _rtw_free_network() static
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:59 -07:00
navin patidar
8eca2e5f78
staging: rtl8188eu: Rename _rtw_find_network() to rtw_find_network()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:59 -07:00
navin patidar
07e49db016
staging: rtl8188eu: Rename _rtw_free_network_queue() to rtw_free_network_queue()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:59 -07:00
navin patidar
ebe98c4fc1
staging: rtl8188eu: Remove unused function rtw_get_timestampe_from_ie()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
5f3f2a2962
staging: rtl8188eu: Remove unused function _rtw_IOL_append_WW_cmd()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
2b83940a2e
staging: rtl8188eu: Remove unused function rtw_set_802_11_remove_wep()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
e68029d4df
staging: rtl8188eu: Remove unused function rtw_set_802_11_remove_key()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
e2313dce40
staging: rtl8188eu: Remove unused function rtw_set_802_11_add_key()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
56da23db87
staging: rtl8188eu: Remove unused function rtw_validate_ssid()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
0306b4f5e7
staging: rtl8188eu: Remove unused function rtw_set_scan_mode()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
fbb6705860
staging: rtl8188eu: Remove function rtw_set_channel_plan()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
navin patidar
48c72e880f
staging: rtl8188eu: Remove unused function rtw_use_tkipkey_handler()
...
Signed-off-by: navin patidar <navin.patidar@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:28:23 -07:00
Malcolm Priestley
a83a85939b
staging: vt6656: wcnd.c clean up comments
...
Removing old functions and comments.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:35 -07:00
Malcolm Priestley
983b65fa8d
staging: vt6656: wcmd remove unneeded headers
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:35 -07:00
Malcolm Priestley
68cc161ee5
staging: vt6656: rename vResetCommandTimer to vnt_reset_command_timer
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
57981a65fb
staging: vt6656: Drop u8 pointer and rename bScheduleCommand.
...
Rename to vnt_schedule_command removing unused u8 pointer.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
592365ae4a
staging: vt6656: rename vRunCommand to vnt_run_command
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
2cd98cd5b8
staging: vt6656: rename vCommandTimerWait to vnt_cmd_timer_wait
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
60cecd2857
staging: vt6656: Move and rename s_bCommandComplete to vnt_cmd_complete
...
Remove static declaration and moving for function visibility
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
190c8190e1
staging: vt6656: dead code remove typedef enum tagCMD_STATUS
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
33a60b87b6
staging: vt6656: replace camel case from command variables
...
camel case changes
uCmdDequeueIdx -> cmd_dequeue_idx
uCmdEnqueueIdx -> cmd_enqueue_idx
cbFreeCmdQueue -> free_cmd_queue
bCmdRunning -> cmd_running
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
9a309289b2
staging: vt6656: remove unused variables bCmdClear and bNeedRadioOFF
...
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
b595f9b89c
staging: vt6656: remove typedef struct tagCMD_ITEM
...
Since enum vnt_cmd is only member replace with array
enum vnt_cmd cmd_queue with size of CMD_Q_SIZE
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
ad74e91d06
staging: vt6656: replace typedef enum tagCMD_STATE with enum vnt_cmd_state
...
Replacing variables.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Malcolm Priestley
80f0d0923f
staging: vt6656: replace typedef enum tagCMD_CODE with enum vnt_cmd
...
Replacing the variables.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:22:34 -07:00
Jes Sorensen
f6a7125c82
staging: rtl8723au: Remove unncessary wrapper PHY_RFConfig8723A()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:14:32 -07:00
Jes Sorensen
9464cac7c9
staging: rtl8723au: Remove obfuscating wrapper ODM_ConfigMACWithHeaderFile23a()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:14:32 -07:00
Jes Sorensen
f467c2b214
staging: rtl8723au: Remove unused ODM_MacStatusQuery23a()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:14:32 -07:00
Jes Sorensen
79756e687c
staging: rtl8723au: Remove ugly wrapper ODM_ConfigBBWithHeaderFile23a()
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:14:32 -07:00
Jes Sorensen
7bafabf2d9
staging: rtl8723au: Remove unused ODM_ReadAndConfig_PHY_REG_PG_8723A() and related code+data
...
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-13 12:14:32 -07:00