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.92 #3 (Red Hat Linux)) id 1i1tvQ-0005z7-Eh for barebox@lists.infradead.org; Sun, 25 Aug 2019 14:55:26 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sun, 25 Aug 2019 16:55:16 +0200 Message-Id: <20190825145517.5546-1-u.kleine-koenig@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 1/2] reset_source: use instance = -1 as default To: barebox@lists.infradead.org QXMgd2l0aCBwbGF0Zm9ybSBkZXZpY2UgaWQgKGRvZXMgc29tZW9uZSBzdGlsbCByZW1lbWJlcj8p IDAgbWlnaHQgYmUgYSB2YWxpZAppZC4gU28gdXNlIC0xIGZvciAidW5rbm93biIgb3IgImRvZXNu J3QgYXBwbHkiIGluc3RlYWQgb2YgMC4KCkFsc28gZG9uJ3QgcGFzcyB0aGUgaW5zdGFuY2UgdG8g dGhlIGRldmljZSB0cmVlIGlmIG5lZ2F0aXZlLiAoVGhpcyBlbmRzCnVwIGFzIDB4ZmZmZmZmZmYg b3RoZXJ3aXNlLikKClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1r b2VuaWdAcGVuZ3V0cm9uaXguZGU+Ci0tLQogY29tbW9uL29mdHJlZS5jICAgICAgICB8IDUgKysr LS0KIGNvbW1vbi9yZXNldF9zb3VyY2UuYyAgfCAyICstCiBpbmNsdWRlL3Jlc2V0X3NvdXJjZS5o IHwgMiArLQogMyBmaWxlcyBjaGFuZ2VkLCA1IGluc2VydGlvbnMoKyksIDQgZGVsZXR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