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 1i1uut-00006z-JE for barebox@lists.infradead.org; Sun, 25 Aug 2019 15:58:57 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sun, 25 Aug 2019 17:58:40 +0200 Message-Id: <20190825155844.18455-4-u.kleine-koenig@pengutronix.de> In-Reply-To: <20190825155844.18455-1-u.kleine-koenig@pengutronix.de> References: <20190825155844.18455-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 v2 3/7] reset_source: drop reset_source_set_instance() To: barebox@lists.infradead.org VGhlIHNlbWFudGljIG9mIHJlc2V0X3NvdXJjZV9zZXRfaW5zdGFuY2UoKSByZXF1aXJlZCBhIHNl cGFyYXRlIGNhbGwgdG8KcmVzZXRfc291cmNlX3NldCgpIChvciByZXNldF9zb3VyY2Vfc2V0X3By aW9yaXR5KCkpIGFuZCBjaGVja2VkIHJpZ2h0CnVzYWdlIG9ubHkgdXNpbmcgdGhlIHR5cGUuIE1h a2UgdGhlIHNldCBvZiBmdW5jdGlvbnMgYSBiaXQgZWFzaWVyIHRvIHVzZQpieSBkcm9wcGluZyBy ZXNldF9zb3VyY2Vfc2V0X2luc3RhbmNlKCkgYW5kIGluc3RlYWQgaW50cm9kdWNlIGEgZnVuY3Rp b24KdGhhdCBjYW4gc2V0IGFsbCByZWxldmFudCBwYXJhbWV0ZXJzIChzb3VyY2UsIHByaW9yaXR5 IGFuZCBpbnN0YW5jZSkgaW4Kb25lIGdvLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS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