Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2422626ybt; Sun, 21 Jun 2020 20:12:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykFT4dt8VAXd1+Ved14DclOu+gBUw+1rCe0LEiOI06uaK81j6BgtZZDRvk1fCfySh0X/Ur X-Received: by 2002:a17:906:1b45:: with SMTP id p5mr1105128ejg.51.1592795548582; Sun, 21 Jun 2020 20:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592795548; cv=none; d=google.com; s=arc-20160816; b=dSOHQZUGa+ujslTWF14d5OKkWg2LGPmAq7g1gSwv7B8tifRg5Fy0JWubDFSjYbN9VS 1Bg8CLkP7CAnI5xU8aTy7Oi0vlxLt1AXoMo0wNMzQ7acbjaYgzJCfXs4acL7Bo1794Jl VBOcHLeDsm1YlVB+0zZPDZyohmNu/cnQ8fARs6ar6PXbGy1Ngg+jXXQkK4hMKE1C9doN CvfvyDa0KX6ielvfpirnHuBlbA+HfPAokwRrlyLC0v4XtxpTQ1ZbHrHrfljX9uxYzuBL 32MVn5/T7ze0nxc/DuDEM9iiOiRFadrp7x0S/su9Gs6JTLqr0J7rN6WnIINd2C4xL0ah Bnfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SCGEaLUtYBhXEn7JNjmN2oWTQgcbt6iL1vLrS5rVTKc=; b=NBDVAonh9WHBa0BwT3s9OCxFS8S0enEDyNkzzePVlkIGydVdi9aCvTrr0LNdLVn4Hc uJbeYUdzAytKezUQ7YG1YhGPI4kJPj4d4E7FK1HDnmD2bj+Fs75rN4skPZMVj8wK12um eM3jvQ16SYoCB1qL9Zw5WAr1CeqApaV+bolHLv1gceoLVkJGBjbAmiWJdq7Hfe3AacfE PiOB9uTBq74d6Vndt+G9LhIHVX0xftJrrQTzcX3ori7ifcC3imCuBeELlePvzwJnD/kv 01tPmGY1PqDbg+ZY1FheDdVErbTWzx/bF9wpyt0w6xu8tzYBWCMlMV+wPSqVc3zPsXqp nuyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fpehY4BD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl21si7730963ejb.739.2020.06.21.20.12.05; Sun, 21 Jun 2020 20:12:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fpehY4BD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731110AbgFVDKW (ORCPT + 99 others); Sun, 21 Jun 2020 23:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgFVDKW (ORCPT ); Sun, 21 Jun 2020 23:10:22 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286BCC061794; Sun, 21 Jun 2020 20:10:22 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id q5so2690950wru.6; Sun, 21 Jun 2020 20:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SCGEaLUtYBhXEn7JNjmN2oWTQgcbt6iL1vLrS5rVTKc=; b=fpehY4BDBzyf02wswu9An2joG4VflAvdVkIZvDXziYMfCUg6u/2ig2oAg6qNqlWfJR osfb0rxEleAxSmKDU++T/0X4Yi91EftpSx2u1K7488F6p2398VBUEOZEPDzIAaKSi2MF OUGvwLNJcvZspOzQ8Tf87nn+5KOy1EXlUQ6ZKYiNIbVQcd/PdsMSnCaqUHoUJl2eCK92 9bZpPSilhxlHaLRXV5hwq0gYtwXkMCLPZ5uVyXhvSV/6CG3oBI/jqg0eCR84x1x4x3sU E6CAPbr2DoHVGBqZOqLGLzE6AGc3To4kqrxDdpGuQDztpSVP8mBxgWxTVHyd9zF+SXTv c3Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=SCGEaLUtYBhXEn7JNjmN2oWTQgcbt6iL1vLrS5rVTKc=; b=Oayl72E8hvfOF/UJ2XfyLLTWD9cWyRCDA07yvSCKhd4C7ruB7JdqMHFqKEJuEHBLck hgAlZkiU3I9eDx9zmTj842FEpoyyxHW+VVCTDuQZGCORpq9EB+NwACGvHrhVYHYCQHyq 8yXR+tVuBa361Qi7aTt8iScPtwecIWtFyc0SUm08BiE5xCx0ZISu7GDxBAvmjhnyPh2V CDGmA3aI2HLeYzapOjbq+rNBVjKehd9gxy6wketSEZiuai5pxsan85eNkW2iL8aipliw Taf0fvFHt4TvtqpgtW4CYpEIF/aZvBNVXXcyRePAJq+Cf1H6fB7oRyPeWny6gFSkxhgd k7VQ== X-Gm-Message-State: AOAM531St/p2OzQJmk+oWI91TjUWNbBvFqqd6NeMu45/iHrYadTrN+M2 vlUH2+06eDzzP7Gt/wSBpaIhuVOiCZw= X-Received: by 2002:a05:6000:10d2:: with SMTP id b18mr16614266wrx.366.1592795420543; Sun, 21 Jun 2020 20:10:20 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id y196sm10031766wmd.11.2020.06.21.20.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 20:10:19 -0700 (PDT) From: Joel Stanley To: devicetree-compiler@vger.kernel.org, David Gibson Cc: linux-kernel@vger.kernel.org, Stephen Rothwell , Arnd Bergmann Subject: [PATCH v4 0/2] dtc: Improve checks for i2c reg properties Date: Mon, 22 Jun 2020 12:40:03 +0930 Message-Id: <20200622031005.1890039-1-joel@jms.id.au> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is to fix a build warning in the Linux kernel caused by dtc incorrectly warning about I2C_OWN_SLAVE_ADDRESS. v4 adds a U to the defines v3 fixes the 10 bit size check v2 contains a second patch to check for 10 bit vs 7 bit addresses. Joel Stanley (2): checks: Remove warning for I2C_OWN_SLAVE_ADDRESS checks: Improve i2c reg property checking checks.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) -- 2.27.0