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 bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs0O9-0005jU-Sp for barebox@lists.infradead.org; Fri, 08 Feb 2019 07:15:57 +0000 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Fri, 8 Feb 2019 08:15:26 +0100 Message-Id: <20190208071526.19150-8-u.oelmann@pengutronix.de> In-Reply-To: <20190208071526.19150-1-u.oelmann@pengutronix.de> References: <20190208071526.19150-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 7/7] common: state: harmonize code with dt-utils To: Barebox List SW5zZXJ0IGEgaGVscGZ1bCBzaXplIGNoZWNrIHRoYXQgaXMgYW4gb3V0Y29tZSBvZiB0aGUgZm9s bG93aW5nIGR0LXV0aWxzCmNvbW1pdHM6Cgp8IGNvbW1pdCBhNmViNTM1MGJlMGY3YTU2NzMxNjJk MjBmMmRkNzI1NjlkNWE0ZDBjCnwgQXV0aG9yOiBNYXJrdXMgUGFyZ21hbm4gPG1wYUBwZW5ndXRy b25peC5kZT4KfCBEYXRlOiAgIEZyaSBNYXkgMjcgMTM6NTM6NDAgMjAxNiArMDIwMAp8CnwgICAg IGJhcmVib3gtc3RhdGU6IEltcG9ydCB1cGRhdGVkIHN0YXRlIGNvZGUKfAp8ICAgICBTaWduZWQt b2ZmLWJ5OiBNYXJrdXMgUGFyZ21hbm4gPG1wYUBwZW5ndXRyb25peC5kZT4KCnwgY29tbWl0IDU4 M2FjZWE2NjY5NTUwZmZhN2ZmYjQ2NTMwMWRkYjM1MjkyMDZhZmMKfCBBdXRob3I6IFNhc2NoYSBI Y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