]> git.karo-electronics.de Git - linux-beck.git/commit
power: bq24257: Add over voltage protection setting support
authorAndreas Dannenberg <dannenberg@ti.com>
Mon, 28 Sep 2015 22:33:57 +0000 (17:33 -0500)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Sep 2015 14:54:22 +0000 (16:54 +0200)
commitbb2956e8e1976d876a755896f5be287cb7e766b2
tree4915e923bc502851117e07b7fc7619b38f0e44d2
parent7c071a0a08f6c6327b86df918d2dda728355d457
power: bq24257: Add over voltage protection setting support

A new optional device property called "ti,ovp-voltage" is introduced to
allow configuring the input over voltage protection setting.

This commit also adds the basic sysfs support for custom properties
which is being used to allow userspace to read the current ovp-voltage
setting.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq24257_charger.c