From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJCwX-0006Dc-RP for barebox@lists.infradead.org; Fri, 18 Sep 2020 09:44:38 +0000 Date: Fri, 18 Sep 2020 11:44:36 +0200 From: Sascha Hauer Message-ID: <20200918094436.GT4498@pengutronix.de> References: <20200916135409.24896-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200916135409.24896-1-a.fatoum@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] globalvar: allow running actions on set with globalvar_add_bool() To: Ahmad Fatoum Cc: barebox@lists.infradead.org On Wed, Sep 16, 2020 at 03:54:09PM +0200, Ahmad Fatoum wrote: > globalvar_add_simple_bool() and the other family of globalvars don't allow > running a callback when the variable is set. This is a useful thing > to have however for things like global.usbgadget.autostart=1. > Provide a globalvar_add_bool() that accommodates this. > > Signed-off-by: Ahmad Fatoum > --- > common/globalvar.c | 8 +++++--- > include/globalvar.h | 14 +++++++++++--- > 2 files changed, 16 insertions(+), 6 deletions(-) Applied, thanks Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox