hwmon: (ina3221) Implement ti,single-shot DT property
authorNicolin Chen <nicoleotsuka@gmail.com>
Thu, 17 Jan 2019 23:12:53 +0000 (15:12 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 18 Feb 2019 22:23:29 +0000 (14:23 -0800)
commit43dece162de0478fee67b635916c9a901a4a47b9
tree2d09f806cd69588a963a6ed337e72c0f05e3580e
parent2e1ce20149ea3cd1cee95a07c51a5b8873c20463
hwmon: (ina3221) Implement ti,single-shot DT property

By default, ina3221, as a hardware monitor, continuously measures
the inputs and generates corresponding data. However, for battery
powered devices, this mode might be power consuming.

The DT binding doc is updated with a new boolean type property to
allow changing the default operating mode from consuming mode to
single-shot mode, which will measure input on demand and then shut
down to save power.

So this patch implements the DT property accordingly.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina3221.c