From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Mon, 30 Sep 2019 09:26:11 +0200 Message-Id: <20190930072613.17956-12-u.oelmann@pengutronix.de> In-Reply-To: <20190930072613.17956-1-u.oelmann@pengutronix.de> References: <20190930072613.17956-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Subject: [OSS-Tools] [PATCH dt-utils 11/13] state: harmonize code with barebox List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: oss-tools-bounces@pengutronix.de Sender: "OSS-Tools" To: Pengutronix Public Open-Source-Development Cc: =?UTF-8?q?Ulrich=20=C3=96lmann?= VGhpcyBwb3J0cyB0aGUgZm9sbG93aW5nIGJhcmVib3ggY29tbWl0OgoKfCBjb21taXQgY2RiZWRk ZjYyYjdhMDFmMDlmMDBlMGZlOTQ0MzA3ODlmNGIwYjA1ZQp8IEF1dGhvcjogVXdlIEtsZWluZS1L w7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KfCBEYXRlOiAgIFdlZCBTZXAg MTEgMjE6Mjc6MzggMjAxOSArMDIwMAp8CnwgICAgIHN0YXRlOiBwcm92aWRlIGR1bW15IGltcGxl bWVudGF0aW9ucyBmb3Igc29tZSBmdW5jdGlvbnMgd2hlbiBTVEFURSBpcwp8ICAgICBkaXNhYmxl ZAp8CnwgICAgIFRoaXMgYWxsb3dzIHRvIHNpbXBsaWZ5IHNvbWUgY2FsbGVycyBhcyBjYW4gYmUg c2VlbiBmcm9tIHRoZQp8ICAgICBwaHl0ZWMtc29tLWFtMzM1eC9ib2FyZC5jIGNoYW5nZS4gKFRo ZSBjaGVjayBmb3Igc3RhdGUgIT0gTlVMTCBjb3VsZCBiZQp8ICAgICBkcm9wcGVkIGFscmVhZHkg YmVmb3JlLikKfAp8ICAgICB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