Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754975AbcCWLfy (ORCPT ); Wed, 23 Mar 2016 07:35:54 -0400 Received: from lists.s-osg.org ([54.187.51.154]:56498 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbcCWLfr (ORCPT ); Wed, 23 Mar 2016 07:35:47 -0400 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: lgirdwood@gmail.com, broonie@kernel.org, Luis de Bethencourt Subject: [PATCH 1/2 v2] regulator: add missing description for set_over_current_protection Date: Wed, 23 Mar 2016 11:35:39 +0000 Message-Id: <1458732939-819-1-git-send-email-luisbg@osg.samsung.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1458732256-29068-1-git-send-email-luisbg@osg.samsung.com> References: <1458732256-29068-1-git-send-email-luisbg@osg.samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1763 Lines: 46 Over current protection is missing descriptions for documentation. Fixes: 3a003baeec24 ("regulator: Add over current protection (OCP) support") Signed-off-by: Luis de Bethencourt --- 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