From: Guodong Xu Date: Wed, 13 Aug 2014 11:33:40 +0000 (+0800) Subject: regulator: core: add guard delay between calling regulator_disable and _enable X-Git-Tag: fixes-for-v3.18-merge-window~31^2~3^3~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871f565055ed232e5751da18a331b73e8254adaf;p=pandora-kernel.git regulator: core: add guard delay between calling regulator_disable and _enable Some regulator require a minimum delay between its disable and next enable. This is to avoid damages when out-of-range frequent disable/enable of a single regulator can bring to the regulator chip. Add @off_on_delay to struct regulator_desc. Device drivers' can use this field to set this guard time. Add @last_off_jiffy to struct regulator_dev. When @off_on_delay is set by driver, regulator core can store its last off (disable) time into this field. Signed-off-by: Guodong Xu Signed-off-by: Mark Brown --- Reading git-diff-tree failed