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 1f78A6-0008EW-56 for barebox@lists.infradead.org; Fri, 13 Apr 2018 23:31:24 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sat, 14 Apr 2018 01:30:50 +0200 Message-Id: <20180413233053.15570-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/4] pci: rename variable mask -> barval To: barebox@lists.infradead.org VGhlIHZhcmlhYmxlIGlzbid0IHJlYWxseSBhIG1hc2suIEFuZCBpdCBpcyBpcnJpdGF0aW5nIHRo YXQgdGhpcyAibWFzayIKdmFsdWUgaXMgcGFzc2VkIGFzIHBhcmFtZXRlciAibWF4YmFzZSIgdG8g dGhlIGZ1bmN0aW9uIHBjaV9zaXplKCkgd2hpY2gKYWxzbyBoYXMgYSBwYXJhbWV0ZXIgIm1hc2si LiBTbyByZW5hbWUgaXQgdG8gYSBtb3JlIGdlbmVyaWMgdGVybS4KClRoZSBtYWluIHJlYXNvbiBm b3IgdGhpcyBwYXRjaCBpcyB0aGF0IHRoZSBuZXh0IHBhdGNoIGludHJvZHVjZXMgYW5vdGhlcgp2 YXJpYWJsZSB3aXRoIG5hbWUgIm1hc2siIGFuZCBzbyB0aGlzIG9yaWdpbmFsIGlzIGluIHRoZSB3 YXkuCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBl bmd1dHJvbml4LmRlPgotLS0KIGRyaXZlcnMvcGNpL3BjaS5jIHwgMjkgKysrKysrK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