summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2018-10-08 14:24:51 -0700
committerGuenter Roeck <linux@roeck-us.net>2018-10-10 20:37:13 -0700
commita6e43263ed01fa617e0a0c13ea8a5f1538573380 (patch)
tree2081d1c550cdda7732cad817df32c34277274339 /tools/perf/scripts/python/export-to-sqlite.py
parent8b9bf554dd530a40cd06a709edb8ec96b4de1d1a (diff)
downloadlinux-a6e43263ed01fa617e0a0c13ea8a5f1538573380.tar.gz
linux-a6e43263ed01fa617e0a0c13ea8a5f1538573380.tar.bz2
linux-a6e43263ed01fa617e0a0c13ea8a5f1538573380.zip
hwmon: (ina3221) Validate shunt resistor value from DT
The input->shunt_resistor is int type while the value from DT is unsigned int. Meanwhile, a divide-by-zero error would happen if the value is 0. So this patch just simply validates the value. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions