[riot-commits] [RIOT-OS/RIOT] 37d870: drivers/lsm303dlhc: correct cast of phydat_t*

Sebastian Meiling s at mlng.net
Mon Jan 7 14:33:14 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 37d8709f3f2805376fd4b4fe8333d403f321d20e
      https://github.com/RIOT-OS/RIOT/commit/37d8709f3f2805376fd4b4fe8333d403f321d20e
  Author: Kees Bakker <kees at sodaq.com>
  Date:   2019-01-06 (Sun, 06 Jan 2019)

  Changed paths:
    M drivers/lsm303dlhc/lsm303dlhc_saul.c

  Log Message:
  -----------
  drivers/lsm303dlhc: correct cast of phydat_t*

The read functions have a lsm303dlhc_3d_data_t* argument which is a
struct with 3 int16_t members. Thus we should cast res->val instead of
just res.


  Commit: 0ee426b4fe304f7cf28baa130874661b96c11bd8
      https://github.com/RIOT-OS/RIOT/commit/0ee426b4fe304f7cf28baa130874661b96c11bd8
  Author: Kees Bakker <kees at sodaq.com>
  Date:   2019-01-06 (Sun, 06 Jan 2019)

  Changed paths:
    M drivers/mma7660/mma7660_saul.c

  Log Message:
  -----------
  drivers/mm7660: correct cast of phydat_t*

The read functions have a mma7660_data_t* argument which is a
struct with 3 int16_t members. Thus we should cast res->val instead of
just res.


  Commit: ab17629b9756548cef1f1db111db95625440073a
      https://github.com/RIOT-OS/RIOT/commit/ab17629b9756548cef1f1db111db95625440073a
  Author: Kees Bakker <kees at sodaq.com>
  Date:   2019-01-06 (Sun, 06 Jan 2019)

  Changed paths:
    M drivers/mag3110/mag3110_saul.c

  Log Message:
  -----------
  drivers/mag3110: correct cast of phydat_t*

The read functions have a mag3110_data_t* argument which is a
struct with 3 int16_t members. Thus we should cast res->val instead of
just res.


  Commit: cf560eaca7caf8036634ae418b8acc1c07885f42
      https://github.com/RIOT-OS/RIOT/commit/cf560eaca7caf8036634ae418b8acc1c07885f42
  Author: Kees Bakker <kees at sodaq.com>
  Date:   2019-01-06 (Sun, 06 Jan 2019)

  Changed paths:
    M drivers/mma8x5x/mma8x5x_saul.c

  Log Message:
  -----------
  drivers/mma8x5x: correct cast of phydat_t*

The read functions have a mma8x5x_data_t* argument which is a
struct with 3 int16_t members. Thus we should cast res->val instead of
just res.


  Commit: 1e4b956eeb3e54c36170b430c2da1287a866691b
      https://github.com/RIOT-OS/RIOT/commit/1e4b956eeb3e54c36170b430c2da1287a866691b
  Author: Kees Bakker <kees at sodaq.com>
  Date:   2019-01-06 (Sun, 06 Jan 2019)

  Changed paths:
    M drivers/mpu9150/mpu9150_saul.c

  Log Message:
  -----------
  drivers/mpu9150: correct cast of phydat_t*

The read functions have a mpu9150_results_t* argument which is a
struct with 3 int16_t members. Thus we should cast res->val instead of
just res.


  Commit: c999d3a592e1e15aab9bcb70a0e7b4145fd7f882
      https://github.com/RIOT-OS/RIOT/commit/c999d3a592e1e15aab9bcb70a0e7b4145fd7f882
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-01-07 (Mon, 07 Jan 2019)

  Changed paths:
    M drivers/lsm303dlhc/lsm303dlhc_saul.c
    M drivers/mag3110/mag3110_saul.c
    M drivers/mma7660/mma7660_saul.c
    M drivers/mma8x5x/mma8x5x_saul.c
    M drivers/mpu9150/mpu9150_saul.c

  Log Message:
  -----------
  Merge pull request #10712 from keestux/lsm303dlhc-correct-phydat-cast

drivers/lsm303dlhc: correct cast of phydat_t*


Compare: https://github.com/RIOT-OS/RIOT/compare/79b051907a44...c999d3a592e1
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list