)]}'
{
  "commit": "b7623a85b0eca0ba93ec3f3fd5bcb53b2a425fc9",
  "tree": "47249d8454a55839476dd3c3c1aa656cc3d68fe1",
  "parents": [
    "2ff98636a5e68fe39c611e06c9acb5976f561090"
  ],
  "author": {
    "name": "Paul Sokolovsky",
    "email": "paul.sokolovsky@linaro.org",
    "time": "Thu Jan 25 15:06:17 2018 +0200"
  },
  "committer": {
    "name": "Carles Cufí",
    "email": "carles.cufi@nordicsemi.no",
    "time": "Mon Feb 05 14:10:39 2018 +0100"
  },
  "message": "sensors: Redefine SENSOR_CHAN_HUMIDITY in percents, not milli-percents.\n\nBased on the discussion in #5693, the reason why humidity was defined\nin milli-percent was likely following Linux which defines it as such\nin its sensor subsystem:\nhttp://elixir.free-electrons.com/linux/latest/source/Documentation/ABI/testing/sysfs-bus-iio#L263\n\nHowever, Linux defines temperature in milli-degrees either, but\nZephyr uses degrees (similarly for most other quantities). Typical\nsensor resolution/precision for humidity is also on the order of 1%.\n\nOne of the existing drivers, th02.c, already returned values in\npercents, and few apps showed it without conversion and/or units,\nleading to confusing output to user like \"54500\".\n\nSo, switching units to percents, and update all the drivers and\nsample apps.\n\nFor few drivers, there was also optimized conversion arithmetics\nto avoid u64_t operations. (There\u0027re probably more places to\noptimize it, and temperature conversion could use such optimization\ntoo, but that\u0027s left for another patch.)\n\nFixes: #5693\n\nSigned-off-by: Paul Sokolovsky \u003cpaul.sokolovsky@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "72ac74635a57470b7dbc5b5a768bcf6811c9753a",
      "old_mode": 33188,
      "old_path": "drivers/sensor/bme280/bme280.c",
      "new_id": "e8ee9f7d8ebb2299047dfd1258c8dbd97710cdbd",
      "new_mode": 33188,
      "new_path": "drivers/sensor/bme280/bme280.c"
    },
    {
      "type": "modify",
      "old_id": "54e4c20be440e1caf52e217eac1fae91aeed6214",
      "old_mode": 33188,
      "old_path": "drivers/sensor/dht/dht.c",
      "new_id": "8c50ad76eafe650418216426443cb93916c5fb4c",
      "new_mode": 33188,
      "new_path": "drivers/sensor/dht/dht.c"
    },
    {
      "type": "modify",
      "old_id": "dd5f69f554ed4b96737769ca9141f9cac4d608b9",
      "old_mode": 33188,
      "old_path": "drivers/sensor/hdc1008/hdc1008.c",
      "new_id": "68ff1d2b678f913b71c979add8722a15783d850b",
      "new_mode": 33188,
      "new_path": "drivers/sensor/hdc1008/hdc1008.c"
    },
    {
      "type": "modify",
      "old_id": "31a4e03a72049a0542a357e55e6868ec520f7481",
      "old_mode": 33188,
      "old_path": "drivers/sensor/hts221/hts221.c",
      "new_id": "2fd20415bcb552d01fbce52e9d7ffae1143bfd70",
      "new_mode": 33188,
      "new_path": "drivers/sensor/hts221/hts221.c"
    },
    {
      "type": "modify",
      "old_id": "63b72f52807964af295702305d1ecd5213fdc3df",
      "old_mode": 33188,
      "old_path": "drivers/sensor/sht3xd/sht3xd.c",
      "new_id": "4569c4add27615b05dc1acfffdea07025f37e758",
      "new_mode": 33188,
      "new_path": "drivers/sensor/sht3xd/sht3xd.c"
    },
    {
      "type": "modify",
      "old_id": "a7cc7ea60ee4c1a0050683db3d94f6364fb62156",
      "old_mode": 33188,
      "old_path": "include/sensor.h",
      "new_id": "2c2c858393ee345b1cc0d85fb00bc7a30ceb3794",
      "new_mode": 33188,
      "new_path": "include/sensor.h"
    },
    {
      "type": "modify",
      "old_id": "0ab9365bc0e45ab38dd8095c25960417b4cf8fef",
      "old_mode": 33188,
      "old_path": "samples/boards/arduino_101/environmental_sensing/ap/src/main.c",
      "new_id": "5db7fc711b8ff0e0d7102a27584bf8186ca0c2d4",
      "new_mode": 33188,
      "new_path": "samples/boards/arduino_101/environmental_sensing/ap/src/main.c"
    },
    {
      "type": "modify",
      "old_id": "7a38b41550cde62af0d1e5a5dca192cf2d2f47f2",
      "old_mode": 33188,
      "old_path": "samples/boards/arduino_101/environmental_sensing/sensor/src/main.c",
      "new_id": "f72736a31a17dbc66ff65b352b8ae9f338d3a648",
      "new_mode": 33188,
      "new_path": "samples/boards/arduino_101/environmental_sensing/sensor/src/main.c"
    },
    {
      "type": "modify",
      "old_id": "2a5f856ad9deea014227fc3d49ec627758666511",
      "old_mode": 33188,
      "old_path": "samples/sensor/hts221/src/main.c",
      "new_id": "0b7eaf04dc564a9fea1a8bfe6ae2104659ac0096",
      "new_mode": 33188,
      "new_path": "samples/sensor/hts221/src/main.c"
    }
  ]
}
