From: broonie@kernel.org (Mark Brown) Date: Tue, 25 Oct 2016 15:33:04 +0100 Subject: [PATCH/RFT v2 09/17] regulator: fixed: Add over current event In-Reply-To: References: <20161024164634.4330-1-ahaslam@baylibre.com> <20161024164634.4330-10-ahaslam@baylibre.com> <20161024175320.GO17252@sirena.org.uk> <20161024181937.GP17252@sirena.org.uk> Message-ID: <20161025143304.GW17252@sirena.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Oct 25, 2016 at 02:55:48PM +0200, Axel Haslam wrote: > To be able to use regulator to handle the overcurrent pin, i need to be able > to somehow retrieve the over current pin state from the regulator driver. What makes you say that, none of the existing users need this? > As i was trying your suggestion, i remembered why i thought i should use > mode instead of status: Status seems to be for internal regulator driver use, > there is no regulator_get_status, function and REGULATOR_STATUS_* are defined > in driver.h and not in consumer.h as REGULATOR_MODE_* > Would you be ok if i allow consumers to get the status via a new > "regulator_get_status" call? What would they do with this information that they can't do with the existing error notification? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: not available URL: