Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1363363

[PATCH 1/2 v2] regulator: add missing description for set_over_current_protection

From Luis de Bethencourt <luisbg@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH 1/2 v2] regulator: add missing description for set_over_current_protection
Date 2016-03-23 12:40 +0100
Message-ID <rfPiO-2K3-19@gated-at.bofh.it> (permalink)
References <rfP99-2DP-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Over current protection is missing descriptions for documentation.


Fixes: 3a003baeec24 ("regulator: Add over current protection (OCP) support")
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
Hi,

Sorry. I missed this second missing description related to over current
protection in regulator_linear_range struct.

Thanks,
Luis

 include/linux/regulator/driver.h  | 3 +++
 include/linux/regulator/machine.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index cd271e8..8ea86dc 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -93,6 +93,9 @@ struct regulator_linear_range {
  * @get_current_limit: Get the configured limit for a current-limited regulator.
  * @set_input_current_limit: Configure an input limit.
  *
+ * @set_over_current_protection: Support capability of automatically shutting
+ *                               down when detecting an over current event.
+ *
  * @set_active_discharge: Set active discharge enable/disable of regulators.
  *
  * @set_mode: Set the configured operating mode for the regulator.
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h
index 5d627c8..ad3e515 100644
--- a/include/linux/regulator/machine.h
+++ b/include/linux/regulator/machine.h
@@ -97,6 +97,7 @@ struct regulator_state {
  * @ramp_disable: Disable ramp delay when initialising or when setting voltage.
  * @soft_start: Enable soft start so that voltage ramps slowly.
  * @pull_down: Enable pull down when regulator is disabled.
+ * @over_current_protection: Auto disable on over current event.
  *
  * @input_uV: Input voltage for regulator when supplied by another regulator.
  *
-- 
2.5.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] regulator: add missing descriptions for docs Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-03-23 12:30 +0100
  [PATCH 2/2] regulator: add missing descriptions in regulator_desc Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-03-23 12:30 +0100
    Applied "regulator: add missing descriptions in regulator_desc" to the regulator tree Mark Brown <broonie@kernel.org> - 2016-03-23 14:50 +0100
  [PATCH 1/2] regulator: add missing description for set_over_current_protection Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-03-23 12:30 +0100
    [PATCH 1/2 v2] regulator: add missing description for set_over_current_protection Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-03-23 12:40 +0100
      Re: [PATCH 1/2 v2] regulator: add missing description for  set_over_current_protection Mark Brown <broonie@kernel.org> - 2016-03-23 12:50 +0100
        Re: [PATCH 1/2 v2] regulator: add missing description for set_over_current_protection Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-03-23 13:00 +0100
      Applied "regulator: add missing description for set_over_current_protection" to the regulator tree Mark Brown <broonie@kernel.org> - 2016-03-23 14:50 +0100

csiph-web