Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e390b07b authored by Matthias Brugger's avatar Matthias Brugger Committed by Greg Kroah-Hartman
Browse files

staging: adis16255 - TODO issues resolved and typos removed



This patch adds the adis16255 driver to the build system under the staging directory.
It solves also most issues mentioned in TODO list:
- sample rate exported to sysfs
- spi_adis16255_bringup and spi_adis16255_shutdown encapsulated
- chip selftest in spi_adis16255_bringup
- kernel messages reduced to a reasonable number
I removed the TODO file, because ther was only the reset of the gyroscope left.
This is IMOH not necessary for the actual driver.

There are also some typos in adis.c file. This patch should get rid of them as well.

Signed-off-by: default avatarMatthias Brugger <mensch0815@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2c834b4d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -137,5 +137,7 @@ source "drivers/staging/cxt1e1/Kconfig"

source "drivers/staging/ti-st/Kconfig"

source "drivers/staging/adis16255/Kconfig"

endif # !STAGING_EXCLUDE_BUILD
endif # STAGING
+1 −0
Original line number Diff line number Diff line
@@ -49,3 +49,4 @@ obj-$(CONFIG_VIDEO_DT3155) += dt3155v4l/
obj-$(CONFIG_CRYSTALHD)		+= crystalhd/
obj-$(CONFIG_CXT1E1)		+= cxt1e1/
obj-$(CONFIG_TI_ST)		+= ti-st/
obj-$(CONFIG_ADIS16255))		+= adis16255/
+6 −4
Original line number Diff line number Diff line
@@ -3,7 +3,9 @@ config ADIS16255
	depends on SPI && SYSFS
	---help---
	If you say yes here you get support for the Analog Devices
      ADIS16250/16255 Low Power Gyroscope.
	ADIS16250/16255 Low Power Gyroscope. The driver exposes
	orientation and gyroscope value, as well as sample rate
	to the sysfs.

	This driver can also be built as a module. If so, the module
	will be called adis16255.
+1 −1
Original line number Diff line number Diff line
obj-$(CONFIG_ADIS16255) += adis1625.o
obj-$(CONFIG_ADIS16255)		+= adis16255.o

drivers/staging/adis16255/TODO

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
* sample rate changeable or at least readable from sysfs
* reset gyroscope
* encapsulate adis_init and adis_turn_off
* AD_CHK deletion
* chip selftest in adis_init
* reduce kernel messages to reasonable amount

Contact: Matthias Brugger <mensch0815@gmail.com>
Loading