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:09 +0200 Message-Id: <20190930072613.17956-10-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 09/13] state: backend_storage: 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?= VGhpcyBwb3J0cyB0aGUgZm9sbG93aW5nIGJhcmVib3ggY29tbWl0OgoKfCBjb21taXQgZjM4OTUz MTFlZjQ5MTcxYjU4YjVlYTFmMDY5NDI0MDhjODY4NWExZQp8IEF1dGhvcjogTHVjYXMgU3RhY2gg PGwuc3RhY2hAcGVuZ3V0cm9uaXguZGU+CnwgRGF0ZTogICBGcmkgSnVsIDIyIDE1OjAwOjE5IDIw MTYgKzAyMDAKfAp8ICAgICBzdGF0ZTogb25seSBidWlsZCBjaXJjdWxhciBiYWNrZW5kIGlmIE1U RCBpcyBlbmFibGVkCnwKfCAgICAgVGhlIGNpcmN1bGFyIGJhY2tlbmQgZGVwZW5kcyBvbiBNVEQg c3ltYm9scyBhbmQgaXMgb25seSB1c2VmdWwKfCAgICAgaWYgTVREIGlzIHByZXNlbnQuIEV4Y2x1 ZGUgaXQgZnJvbSB0aGUgYnVpbGQgaWYgTVREIGlzIG5vdCBlbmFibGVkLgp8CnwgICAgIFNpZ25l ZC1vZmYtYnk6IEx1Y2FzIFN0YWNoIDxsLnN0YWNoQHBlbmd1dHJvbml4LmRlPgp8ICAgICBTaWdu ZWQtb2ZmLWJ5OiBT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