01 Feb, 2020

1 commit

  • commit e825070f697abddf3b9b0a675ed0ff1884114818 upstream.

    The commit 41c128cb25ce ("iio: st_gyro: Add lsm9ds0-gyro support")
    assumes that gyro in LSM9DS0 is the same as others with 0xd4 WAI ID,
    but datasheet tells slight different story, i.e. the first scale factor
    for the chip is 245 dps, and not 250 dps.

    Correct this by introducing a separate settings for LSM9DS0.

    Fixes: 41c128cb25ce ("iio: st_gyro: Add lsm9ds0-gyro support")
    Depends-on: 45a4e4220bf4 ("iio: gyro: st_gyro: fix L3GD20H support")
    Cc: Leonard Crestez
    Cc: Lorenzo Bianconi
    Cc:
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Jonathan Cameron
    Signed-off-by: Greg Kroah-Hartman

    Andy Shevchenko
     

11 Aug, 2019

1 commit


05 Aug, 2019

2 commits


28 Jul, 2019

4 commits


19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

05 Jun, 2019

2 commits

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms and conditions of the gnu general public license
    version 2 as published by the free software foundation this program
    is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details you should have received a copy of the gnu general
    public license along with this program if not write to the free
    software foundation inc 51 franklin st fifth floor boston ma 02110
    1301 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 111 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190530000436.567572064@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms and conditions of the gnu general public license
    version 2 as published by the free software foundation this program
    is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 263 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141901.208660670@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

31 May, 2019

3 commits

  • Based on 1 normalized pattern(s):

    licensed under the gpl 2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 135 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Alexios Zavras
    Reviewed-by: Steve Winslow
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190528170026.071193225@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 3 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [kishon] [vijay] [abraham]
    [i] [kishon]@[ti] [com] this program is distributed in the hope that
    it will be useful but without any warranty without even the implied
    warranty of merchantability or fitness for a particular purpose see
    the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [graeme] [gregory]
    [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
    [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
    [hk] [hemahk]@[ti] [com] this program is distributed in the hope
    that it will be useful but without any warranty without even the
    implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1105 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    licensed under the gpl 2 or later

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 82 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190524100845.150836982@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

21 May, 2019

2 commits


25 Apr, 2019

1 commit

  • …iio into staging-next

    Jonathan writes:

    Second set of IIO new device support, features and cleanup for the 5.2 cycle.

    New device suport
    * ad7606
    - Support the AD7616 16 channel, 12bit ADC.
    * fxas21002c
    - New driver for this gyroscope with I2C and SPI support.
    * lsm6dsx
    - Support the lsm6dsr, new device information structure and dt bindings.
    * srf04
    - Addition device IDs for mb1000, mb1010, mb1020, mb1030 and mb1040 +
    support of different required trigger pulse lengths.
    * st-accel
    - Support the ls2de12, new device info and dt bindings.
    * ti-ads8344
    - New driver for this 8 channel, 16 bit SPI ADC.

    Binding conversions to yaml - we have started doing these in general for IIO.
    * avia-hx711
    * bmp085

    Cleanups and minor fixes / additions
    * ad5758
    - Fixup for some changes between preproduction parts and final part.
    * ad7606
    - Refactor handling of oversampling to make it easy to vary between
    supported devices.
    * ad9832
    - Organise includes.
    - Clock framework to handle clocks.
    * ad9834
    - Drop unnecessary parenthesis.
    * bmc150
    - Use __func__ rather than hardcoding.
    * dummy_evgen.
    - Fix a memleak on error in probe.
    * kxcjk1013
    - Add KXCJ91008 ACPI ID as seen in the wild.
    - Use __func__ rather than hardcoding.
    * imx7d
    - Local dev variable to simplify code a bit.
    - dev_err replaces pr_err to give more info.
    - devm_platform_ioremap_resource for small reduction in boilerplate.
    - Simplify probe and remove by sharing suspend / resume logic.
    - Devm for iio_device_register as remove only contains the unregister.
    * lsm6dsx
    - Remove a variable that was never read.
    - Open code values where they are effectively described by what is assigned
    to them rather than using uninformative defines.
    * max31856
    - Avoid an unintialized ret variable in a path that can't actually occur
    but is hard for a static checker to know.
    * max9611
    - White space
    * mpu3050
    - Reduce a sleep worst case by switching from msleep to usleep_range.
    * qcom-spmi-adc5
    - Add MODULE_DEVICE_TABLE to assist autoloading of this as a module.
    * stm32-dfsdm
    - Fix missing dependencies.
    * stm32-timer trigger
    - Fix a build issue when disabled.
    * ti-ads7950
    - Fix mising dependency on CONFIG_GPIOLIB.

    * tag 'iio-for-5.2b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (42 commits)
    iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
    iio: dummy_evgen: fix possible memleak in evgen init
    iio:accel:Switch hardcoded function name with a reference to __func__ making the code more maintainable
    iio: adc: stm32-dfsdm: fix triggered buffer build dependency
    iio: adc: stm32-dfsdm: fix unmet direct dependencies detected
    iio: trigger: stm32-timer: fix build issue when disabled
    iio: imx7d_adc: Use devm_iio_device_register()
    iio: imx7d_adc: Simplify imx7d_adc_remove() with imx7d_adc_suspend()
    iio: imx7d_adc: Simplify imx7d_adc_probe() with imx7d_adc_resume()
    drivers/iio/gyro/mpu3050-core.c: This patch fix the following checkpatch warning.
    iio: dac: ad5758: Modifications for new revision
    iio: imu: st_lsm6dsx: inline per-sensor data
    iio: adc: Add driver for the TI ADS8344 A/DC chips
    dt-bindings: iio: adc: Add bindings for TI ADS8344 A/DC chips
    MAINTAINERS: add entry for fxas21002c gyro driver
    iio: gyro: fxas21002c: add spi driver
    iio: gyro: fxas21002c: add i2c driver
    iio: gyro: add core driver for fxas21002c
    iio: gyro: add DT bindings to fxas21002c
    Kconfig: change configuration of srf04 ultrasonic iio sensor
    ...

    Greg Kroah-Hartman
     

22 Apr, 2019

5 commits


05 Apr, 2019

4 commits

  • Add of_match_table.

    Signed-off-by: H. Nikolaus Schaller
    Signed-off-by: Jonathan Cameron

    H. Nikolaus Schaller
     
  • This patch allows to read a mount-matrix device tree
    property and report to user-space or in-kernel iio
    clients.

    Signed-off-by: H. Nikolaus Schaller
    Reviewed-by: Andy Shevchenko
    Reviewed-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    H. Nikolaus Schaller
     
  • This patch allows to read a mount-matrix device tree
    property and report to user-space or in-kernel iio
    clients.

    Signed-off-by: H. Nikolaus Schaller
    Reviewed-by: Linus Walleij
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Jonathan Cameron

    H. Nikolaus Schaller
     
  • Currently mount matrix is allowed in Device Tree, though there is
    no technical issue to extend it to support ACPI.

    Convert the function to use device_property_read_string_array() and
    thus allow to read mount matrix from ACPI if available.

    Example of use in _DSD method:

    Name (_DSD, Package ()
    {
    ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
    Package ()
    {
    Package () { "mount-matrix", Package() {
    "1", "0", "0",
    "0", "0.866", "0.5",
    "0", "-0.5", "0.866",
    } },
    }
    })

    At the same time drop the "of" prefix from its name and
    convert current users.

    No functional change intended.

    Signed-off-by: Andy Shevchenko
    Reviewed-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Andy Shevchenko
     

10 Mar, 2019

2 commits


16 Nov, 2018

1 commit

  • Before this commit sensor_hub_input_attr_get_raw_value() failed to take
    the signedness of 16 and 8 bit values into account, returning e.g.
    65436 instead of -100 for the z-axis reading of an accelerometer.

    This commit adds a new is_signed parameter to the function and makes all
    callers pass the appropriate value for this.

    While at it, this commit also fixes up some neighboring lines where
    statements were needlessly split over 2 lines to improve readability.

    Signed-off-by: Hans de Goede
    Acked-by: Srinivas Pandruvada
    Acked-by: Benjamin Tissoires
    Cc:
    Signed-off-by: Jonathan Cameron

    Hans de Goede
     

08 Mar, 2018

1 commit

  • Usually, functions responsible for reading raw data typically relies on
    values from iio_chan_info_enum to correctly identify the type of data to
    be read. There is a set of a device driver that uses the magic number 0
    instead of IIO_CHAN_INFO_RAW. This patch improves the readability by
    replaces the magic number 0 for the appropriate IIO_CHAN_INFO_RAW in six
    devices driver in the IIO subsystem.

    Signed-off-by: Rodrigo Siqueira
    Signed-off-by: Jonathan Cameron

    Rodrigo Siqueira
     

08 Jan, 2018

2 commits

  • Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
    for debugfs files.

    Semantic patch information:
    Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
    imposes some significant overhead as compared to
    DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().

    Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci

    Signed-off-by: Venkat Prashanth B U
    Signed-off-by: Jonathan Cameron
    Signed-off-by: Greg Kroah-Hartman

    Venkat Prashanth B U
     
  • These duplicate includes have been found with scripts/checkincludes.pl but
    they have been removed manually to avoid removing false positives.

    Signed-off-by: Pravin Shedge
    Signed-off-by: Jonathan Cameron
    Signed-off-by: Greg Kroah-Hartman

    Pravin Shedge
     

14 Nov, 2017

1 commit

  • Pull staging and IIO updates from Greg KH:
    "Here is the "big" staging and IIO driver update for 4.15-rc1.

    Lots and lots of little changes, almost all minor code cleanups as the
    Outreachy application process happened during this development cycle.
    Also happened was a lot of IIO driver activity, and the typec USB code
    moving out of staging to drivers/usb (same commits are in the USB tree
    on a persistent branch to not cause merge issues.)

    Overall, it's a wash, I think we added a few hundred more lines than
    removed, but really only a few thousand were modified at all.

    All of these have been in linux-next for a while. There might be a
    merge issue with Al's vfs tree in the pi433 driver (take his changes,
    they are always better), and the media tree with some of the odd
    atomisp cleanups (take the media tree's version)"

    * tag 'staging-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (507 commits)
    staging: lustre: add SPDX identifiers to all lustre files
    staging: greybus: Remove redundant license text
    staging: greybus: add SPDX identifiers to all greybus driver files
    staging: ccree: simplify ioread/iowrite
    staging: ccree: simplify registers access
    staging: ccree: simplify error handling logic
    staging: ccree: remove dead code
    staging: ccree: handle limiting of DMA masks
    staging: ccree: copy IV to DMAable memory
    staging: fbtft: remove redundant initialization of buf
    staging: sm750fb: Fix parameter mistake in poke32
    staging: wilc1000: Fix bssid buffer offset in Txq
    staging: fbtft: fb_ssd1331: fix mirrored display
    staging: android: Fix checkpatch.pl error
    staging: greybus: loopback: convert loopback to use generic async operations
    staging: greybus: operation: add private data with get/set accessors
    staging: greybus: loopback: Fix iteration count on async path
    staging: greybus: loopback: Hold per-connection mutex across operations
    staging: greybus/loopback: use ktime_get() for time intervals
    staging: fsl-dpaa2/eth: Extra headroom in RX buffers
    ...

    Linus Torvalds
     

02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

11 Oct, 2017

1 commit


10 Oct, 2017

2 commits

  • Separate data-ready configuration parameters for INT1 and INT2 pins in
    st_sensor_data_ready_irq data structure. That change will be use to
    properly support LIS2DW12 accel sensor.

    Signed-off-by: Lorenzo Bianconi
    Reviewed-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Lorenzo Bianconi
     
  • Introduce register mask for data-ready status register since
    pressure sensors (e.g. LPS22HB) export just two channels
    (BIT(0) and BIT(1)) and BIT(2) is marked reserved while in
    st_sensors_new_samples_available() value read from status register
    is masked using 0x7.
    Moreover do not mask status register using active_scan_mask since
    now status value is properly masked and if the result is not zero the
    interrupt has to be consumed by the driver. This fix an issue on LPS25H
    and LPS331AP where channel definition is swapped respect to status
    register.
    Furthermore that change allows to properly support new devices
    (e.g LIS2DW12) that report just ZYXDA (data-ready) field in status register
    to figure out if the interrupt has been generated by the device.

    Fixes: 97865fe41322 (iio: st_sensors: verify interrupt event to status)
    Signed-off-by: Lorenzo Bianconi
    Reviewed-by: Linus Walleij
    Signed-off-by: Jonathan Cameron

    Lorenzo Bianconi
     

23 Aug, 2017

1 commit


02 Jul, 2017

2 commits